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 are externizable interface?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What are the different approaches to represent an inheritance hierarchy?
How will you pass parameters in RMI? Why do you serialize?
What if the static modifier is removed from the signature of the main method?
What method is invoked to cause an object to begin executing as a separate thread?
What are callback interfaces?
What is a session? Can you share a session object between different theads?
What’s jboss cache in short?
Which class is the immediate superclass of the menucomponent class?
What is ioc concept & explain it?
Which container method is used to cause a container to be laid out and redisplayed?
Define aop(assepct oriented programing)?
Can I run seam outside of jboss as?
What is a clone?