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
Explain the life cycle of jdbc.
What is a jdbc connection?
Does jdbc require oracle client?
What is the difference between ojdbc6 and ojdbc7?
What is correlated subquery?
What does executeupdate return in java?
What do you mean by two phase commits?
What are the steps to connect to the database in java?
What is jdbc driver?
What does the jdbc resultset interface?
What are the flow statements of jdbc?
Write an sql to find all records having all numeric characters in a field ?
What is JDBC DataSource and what are it’s benefits?
Can I use JDBC to execute non-standard features that my DBMS provides?
What is the difference between executing, executequery, executeupdate in jdbc?