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
What are the measures to connect to the db using jdbc?
How to insert an image or raw data into database?
Is jdbc faster than odbc?
What is JDBC Connection? Explain steps to get Database connection in a simple java program.
How many rowset are available in jdbc?
What do you mean by database connection pooling?
Explain the difference between rowset vs. Resultset in jdbc?
What is jdbc explain?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
RowSetInternal caller and returns void. What can I do in the readData method?
How can I manage special characters when I execute an insert query?
How does jdbc driver work?
What is thin driver in jdbc?
What does the connection object represents?
How to set NULL values in JDBC PreparedStatement?