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
What are the conditions applies to varchar variable, when using in procedures?
What do you mean by metadata and why we are using it?
How can I manage special characters when I execute an insert query?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?
What are the different types of statements? How we can you use preparedstatement.
The new features of the JDBC 2.0 API, will be supported for JDBC-ODBC Bridge?
What is jdbc dialect?
What are the flow statements of jdbc?
What are the methods which can verify the cursor particular position?
Can we return resultset in java?
Explain the difference between rowset vs. Resultset in jdbc?
What is a java driver?
RowSetInternal caller and returns void. What can I do in the readData method?
Why is jdbc needed?
Is oracle client required for jdbc connection?