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 resultset in jdbc with example?
What is jdbc? Describe the steps needed to execute a sql query using jdbc.
What are the advantages of using preparedstatement in java?
What are the measures to connect to the db using jdbc?
Name different methods for getting streams.
What are temp tables ?
How do I load a database driver with JDBC 4.0 / Java 6?
Why resultset is used in java?
Which database is used with java?
State the three different ways in which you can create a table?
What class.forname does, while loading the drivers?
What does connection pooling mean ?
What are the steps involved in establishing a connection using jdbc in java?
What is the difference between execute, executeQuery, executeUpdate?
Does jdbc use ssl?