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


Please Help Members By Posting Answers For Below Questions

How many ways can you update a result set?

565


How we store procedure in oralce for callable statements in jdbc

1856


Which type of JDBC driver is the fastest one?

578


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

611


What is ojvm used for?

554






What is jdbc driver manager?

502


What is the difference between client and server database cursors?

607


What is the execute method in java?

553


What is resultset in jdbc with example?

499


Is jpa faster than jdbc?

511


How are jdbc statements used?

510


What is an escape syntax?

535


If you are truncated using JDBC, how can you that how much data is truncated?

592


Explain the role of driver in jdbc.

567


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

669