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 latest version of JDBC? What are the new features added in that?
How do we call a stored procedure from jdbc?
What is a statement in java?
What does executequery return in java?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?
What is jdbc driver for sql server?
What is type 4 jdbc driver?
How to know howmuch data is truncated?
Why “no suitable driver” error occurs?
The new features of the JDBC 2.0 API, will be supported for JDBC-ODBC Bridge?
What is jdbc odbc driver?
What is jdbc thin client?
Is jdbc database independent?
What are the differences between execute, executequery, and executeupdate?
What is difference between statement and preparedstatement in jdbc?