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
Is jdbc and orm?
What is a jdbc connection pool?
Is possible to open a connection to a database with exclusive mode with JDBC?
Explain the steps in writing a java program using jdbc?
What is an SQL Locator?
What is an odbc driver?
What is savepoint in jdbc?
What is resultset?
How MS-Access DB can be accessed over a network, using JDBC API?
Explain Basic Steps in Writing a Java Program Using Jdbc?
What is hbm xml?
Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?
How can we retrieve data from the resultset?
Why we use while rs next ())?
What does executeupdate return in java?