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 is glasgow?
what are memory considerations of jsp compares to other web components?
whats is mean by connectionpooling
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
What is the difference between a menuitem and a checkboxmenuitem?
what are the activation groupworks?
What are the different methods of identifying an object?
Difference between DurableSubscription and non- DurableSubscription?
What class is the top of the awt event hierarchy?
What is the map interface?
What is difference between object state and behavior?
What are JTA/JTS and how they used by client?
What is the difference between the session.update() method and the session.lock() method?
What is TL and its use?
Write a singleton program?