what does the method Class.forName returns?
Answer Posted / priyank jain
Static method Class.forName(String className) returns the
Object for the classname specified in argument passed to
method.
Also Class.forName used to load drivers.
Ex. In JDBC call
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
automatically creates an instance of a EmbeddedDriver and
registers it with the DriverManager.
Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
Why hibernate is better than jdbc?
What is ODBC and JDBC? How do you connect the Database?
What are collection pools?
What is two-phase commit in the database?
What are the considerations for deciding on transaction boundaries?
Explain the difference between resultset and rowset in jdbc
Which is best database for java?
How can I manage special characters when I execute an insert query?
What are the utilities of the callablestatement?
What are the jdbc drivers in java?
What is savepoint in jdbc?
Is uri the same as url?
Where is jdbc url mysql?
In which ways is driver class is registered with drive manager?
How can we set null value in jdbc preparedstatement?