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

Answer Posted / nitin upadhyay,raigarh(c.g)

By using this coding we load the driver.
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.jdbc.odbc.JdbcOdbcDriver");

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a database?

488


What class.forname will do while loading drivers of jdbc?

490


What is the major difference between java.util.date and java.sql.date data type?

482


Explain the two tier and three tier architecture of jdbc.

517


What is CLOB and BLOB datatypes in JDBC?

549






Does jdbc use ssl?

490


What is the JDBC?

549


Discuss the significances of jdbc.

511


What happens if we don't close the connection in jdbc?

479


How can we retrieve data from the resultset?

545


What are the differences between statement and preparedstatement interface?

510


What is addbatch jdbc?

529


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

524


How to check jdbc driver version in sql server?

471


Name the method, which is used to prepare a callablestatement.

498