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 many ways can you update a result set?
How we store procedure in oralce for callable statements in jdbc
Which type of JDBC driver is the fastest one?
How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?
What is ojvm used for?
What is jdbc driver manager?
What is the difference between client and server database cursors?
What is the execute method in java?
What is resultset in jdbc with example?
Is jpa faster than jdbc?
How are jdbc statements used?
What is an escape syntax?
If you are truncated using JDBC, how can you that how much data is truncated?
Explain the role of driver in jdbc.
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?