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
What does module-relative mean?
What is Remote Server?
What is the difference between the session.get() method and the session.load() method?
When a thread blocks on i/o?
How will you pass parameters in RMI? Why do you serialize?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What is the difference between ear, jar and war file?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What is the purpose of the notifyall() method?
Do I have to use jsps with my application?
Is jvm a overhead?
Which containers use a border layout as their default layout?
Why are some of the class and element names counter-intuitive?
What value does read() return when it has reached the end of a file?
What is the relationship between the canvas class and the graphics class?