Why is manual stuff like :
MyDriver driver = new MyDriver() ( OR MyDriver.getInstance() );
Not recommended over Class.forName("MyDriver") if they do the same thing?
santosh kimothi wrote:Class.forName("class name");
is generlly used to load a class specified.
and then internally this method call the method a static block of specified class as follows -
then it creates object of the specified Driver.
No, it doesn't
Fei Wong wrote:May I know does loads the driver class means import the driver class using import statement?