What is the use of Class.forName

Answer Posted / ambika

it is used to load the driver in database
its a first step of connection of database
structure:
class.forName("sun.jdbc:odbc:jdbcodbcDriver")

Is This Answer Correct ?    12 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the finally clause of a try-catch-finally statement?

767


What is a policy?

2005


What is synchronization and why is it important?

748


What is TL and its use?

2204


What are the difference between RMI and CORBA?

822


Which component handles cluster communication in jboss?

835


What is RMI and what are the services in RMI?

833


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

796


How to deploy Jar, War files in J2EE?

2376


Is “abc” a primitive value?

809


Is infobus easy to use?

787


How substring() method of string class create memory leaks?

768


Java is fully object oriented languages or not?

744


What if the static modifier is removed from the signature of the main method?

947


How to determine SGA site?

2154