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

Can I import same package/class twice? Will the jvm load the package twice at runtime?

742


What class is the top of the awt event hierarchy?

688


What restrictions are placed on the values of each case of a switch statement?

613


What is the infobus?

696


What you mean by COM and DCOM?

695






How are the elements of a borderlayout organized?

709


Are enterprise beans allowed to use thread.sleep()?

760


How primary key is implemented in Oracle?

2026


Why won’t the jvm terminate when I close all the application windows?

854


What are the different class loaders used by jvm?

696


what is a portable component?

1564


What are various types of class loaders used by jvm?

594


Can I map more than one table in a cmp?

676


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

650


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

675