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
Can I run seam with jdk 1.4 and earlier?
Define prototype?
what are getters and setters in Java with examples?
Do I need to import javlang package any time? Why ?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
Which are the different segments of memory?
Why do threads block on i/o?
Name the class that is used to bind the server object with RMI Registry?
Will the general public have access to the infobus apis?
What is the difference between RMI registry and OS Agent?
What is a modular application?
What are the diff types of exception?
How would you create a button with rounded edges?
What modifiers may be used with an interface declaration?
Why won’t the jvm terminate when I close all the application windows?