Answer Posted / vivek katta
Class.forName will basically load a class. As part of class loading, static variables
will be initialized and static blocks present in the class will be executed.
This is the concept used in JDBC to register driver(s). A static block in the driver
class gets executed which inturn registers the JDBC driver with the connection
manager.
Is This Answer Correct ? | 66 Yes | 2 No |
Post New Answer View All Answers
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?
What is colon_pkg_prefixes and what is its use?
Will the general public have access to the infobus apis?
What is JTS?
How are commas used in the intialization and iteration parts of a for statement?
What is the difference between system.out ,system.err and system.in?
What is the purpose of the finally clause of a try-catch-finally statement?
which book is better for jdbc ,servlets and jsp
What are JTA/JTS and how they used by client?
What is a clone?
Is the ternary operator written x : y ? Z or x ? Y : z ?
What is metaspace?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Is it possible to stop the execution of a method before completion in a sessionbean?
difference between ejb,struts,hibernate,spring and jsp