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 is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?

495


Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?

544


Is jdbc and orm?

503


What is jdbc and why is it required?

465


How can we disable a constraint ?

565






Why are we using blob datatypes in jdbc?

555


What are the considerations for deciding on transaction boundaries?

560


What is the reason why we need a jdbcrowset like the wrapper around resultset?

544


How can we retrieve the file in the oracle database?

516


What is the return type of execute, executequery and executeupdate?

656


What is ojdbc14 jar?

500


What do you mean by metadata and why we are using it?

566


Define preparedstatement.

537


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

598


explain about special characters?

539