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
How java can be connected to a database?
What is connection pooling and why it is used?
Does jdbctemplate use prepared statements?
Explain the role of driver in jdbc.
What is the limitation of PreparedStatement and how to overcome it?
What is a statement in java?
What is jdbc odbc bridge in java?
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
What is the full form of jdbc?
What are the different types of lockings in jdbc?
List the advantages of using datasource?
What is the use of setFetchSize() and setMaxRows() methods in Statement?
Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?
How many jdbc driver types are there?
How many ways can you update a result set?