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 is drivermanager in java?
Explain about column name and getter method?
Why did my jdbc code throw a rollback sqlexception?
What is jdbc vs odbc?
What is a jdbc connection pool?
How to know howmuch data is truncated?
What is JDBC Batch Processing and what are it’s benefits?
How many ways that we can view a result set?
What is 2 phase commit?
What do you mean by odbc?
What is the full form of jdbc and what is its purpose?
What is ODBC and JDBC? How do you connect the Database?
What causes no suitable driver error?
What does executequery return in java?
Explain the various types of locking system in jdbc?