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 in terms of jdbc a datasource?

496


What is odbc. how is it related to sql cli?

582


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

544


List the advantages of using datasource?

543


How do java applications access the database using jdbc?

513






What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

479


What is jdbc and why is it required?

445


State the different connection methods used for creating different types of sql.

480


Can we have foreign key reference to a non primary key column ?

514


What is a statement in java?

493


What are the main components of JDBC ?

555


What is jdbc architecture in java?

450


What do you mean by odbc?

519


What happens if connection is not closed in jdbc?

479


Which jdbc driver type s is are the jdbc odbc bridge?

452