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
Is java a database?
What class.forname will do while loading drivers of jdbc?
What is the major difference between java.util.date and java.sql.date data type?
Explain the two tier and three tier architecture of jdbc.
What is CLOB and BLOB datatypes in JDBC?
Does jdbc use ssl?
What is the JDBC?
Discuss the significances of jdbc.
What happens if we don't close the connection in jdbc?
How can we retrieve data from the resultset?
What are the differences between statement and preparedstatement interface?
What is addbatch jdbc?
What are the steps required to execute a query in jdbc?
How to check jdbc driver version in sql server?
Name the method, which is used to prepare a callablestatement.