what exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail

Answer Posted / yash

In addition to above answers, using Class.forName the
instance of driver is automatically registered with the
DriverManager. Thus it saves us from the efforts of
creating new instance of driver and registering it with
DriverManager!!

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of classes in the api component?

701


How do we call a stored procedure from jdbc?

712


Why is jdbc needed?

663


What does jdbc do?

681


Why “no suitable driver” error occurs?

789






Is jdbc a framework?

636


Name the types of jdbc drivers.

679


What is dburl?

750


What are the types of statements in jdbc?

692


What are the steps required to execute a query in jdbc?

683


What is the role of jdbc drivermanager class?

780


What are different parts of a url?

665


Why do we use jdbc statements?

680


What is metadata in jdbc?

640


How you restrict a user to cut and paste from the html page using java programing?

629