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?
Why jdbc is used in java?
What are the different types of drivers under jdbc?
What are the steps required to execute a query in jdbc?
What are the differences between stored procedure and functions?
What is ojdbc14 jar?
How data can be inserted into long row column of database?
Why we use while rs next ())?
Is jdbc faster than hibernate?
What should be done for auto generating primary key id in a table ?
How many packages are available in jdbc api?
How can I manage special characters when I execute an insert query?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What do you mean by database connection pooling?
What are the differences between execute, executequery, and executeupdate?