What is the use of Class.forName

Answer Posted / shahin ali ansari

we know there are two type of class loading in memory first
one static loading and second one is dynamic loading,static
block load in memory before main.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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1884


Explain about RMI Architecture?

826


What are the pros and cons of detached objects?

750


Difference between hashmap and hashtable?

826


what are the advantages of JTA over JTS?

1904


What’s jboss jbpm?

756


Explain ioc concept?

848


what are getters and setters in Java with examples?

1490


Explain the different types of memory used by jvm?

856


What is RMI and what are the services in RMI?

834


What is threadfactory?

849


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2510


Which javutil classes and interfaces support event handling?

782


How would you create a button with rounded edges?

751


Why is actionform a base class rather than an interface?

774