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 jpa faster than jdbc?
What are the classes and methods used for sending sql statements to database?
How do you determine the sensitivity of the ResultSet object?
How many packages are available in jdbc api?
Is jdbc a protocol?
What does executeupdate return in jdbc?
What is jdbc and its advantages?
Why isn't the java.sql.DriverManager class being found?
What are the flow statements of jdbc?
What is while rs next ())?
How to check jdbc connection in linux?
Explain creation of statement object with connection method create method with help of an example.
What are the different types of drivers under jdbc?
Which type of driver provides jdbc access via one or more odbc drivers?
How to check jdbc driver version in sql server?