1.

When you say Class.forName() loads the driver class, does it mean it imports the driver class using import statement?

Answer»

No, it doesn't. An import statement tells the compiler which class to look for. Class.forName() instructs the Classclass to find a class-loader and load that particular Class object into the memory used by the JVM.



Discussion

No Comment Found