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

Answer Posted / sangeeta

Class is a predefined class and forName is the static
method of the class which is used to load the driver in the
memory for connectivity.

For eg
Class.forName("sun.jsbc.odbc.JdbcOdbcDriver");

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of statement in jdbc?

471


What are common JDBC Exceptions?

550


What is in terms of jdbc a datasource?

522


What is a datasource in java?

506


Why do you use a data source object for a connection?

546






What is jdbc in java?

493


What is url in jdbc connection?

507


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

480


What are dml and ddl?

542


Does jdbctemplate close connection?

501


Which jdbc drivers will run your program?

518


How can I connect mysql or oracle with java?

554


What is jdbc odbc driver?

580


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

534


What are the advantages of using preparedstatement over statement?

541