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
How to know howmuch data is truncated?
What is jdbc connection interface?
When do we get java.sql.SQLException: No suitable driver found?
What is jdbc thin client?
How do I insert/update records with some of the columns having NULL value?
How data can be inserted into long row column of database?
what happen if we set JDBC string to NULL?
What is jdbc odbc bridge in java?
What is metadata in java programming?
Explain how data flows from view to db and reverse
What is benefit of using preparedstatement in java?
How can I create a custom RowSetMetaData object from scratch?
Why resultset is used in java?
How java can be connected to a database?
Does sql allow null values ?