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

How we can you use preparedstatement.

535


What is meant by dao?

497


How does a custom RowSetReader get called from a CachedRowSet?

546


What is an escape syntax?

506


What do you understand by jdbc driver and explain its types?

470






What is jdbc connection?

634


What is correlated subquery?

1733


Explain jdbc savepoint?

548


What is the full form of jdbc and what is its purpose?

516


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

566


Explain in detail about JDBC and its general features?

512


What is the role of jdbc drivermanager class?

543


Does JDBC support stored procedures?

541


Does jdbctemplate close connection?

477


How to check jdbc connection in java?

474