what exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail
Answer Posted / sangeeta
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.jsbc.odbc.JdbcOdbcDriver");
| Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
What is the function of setautocommit?
What is difference between jdbc and odbc?
What is jdbc odbc bridge?
Give an example for execution of sql statement.
What is jdbc databasemetadata interface?
What is jdbc and odbc?
Explain the locking system in jdbc & its types?
Explain the steps in writing a java program using jdbc?
Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?
What is metadata in jdbc?
If I use the JDBC API, do I have to use ODBC underneath?
What is savepoint in jdbc?
Is jpa faster than jdbc?
What class.forname does, while loading the drivers?
Compare jdbc and odbc and how is jdbc required in this context.