What is the use of Class.forName

Answer Posted / amol sawant

Class.forName(driver);

in this "Class" is the name of the Object of "Class" class
which is in sql package
and forName();
is method of that class "Class"
it will load the driver for connection purpose

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the diff types of exception?

763


How to deploy Jar, War files in J2EE?

2381


What is local interface. How values will be passed?

762


How can I scroll through list of pages like the search results in google?

772


How messaging services are done, before release of JMS?

1805


Name the class that is used to bind the server object with RMI Registry?

1905


Can you control when passivation occurs?

809


Is “abc” a primitive value?

816


How to determine SGA site?

2156


What is the difference between session and entity beans?

795


What is the difference between static and non-static with examples?

1590


What is prototype?

817


What is the difference between the session.update() method and the session.lock() method?

746


What is a class loader? What are the different class loaders used by jvm?

803


What is message driven beam?

793