what does the method Class.forName returns?
Answer Posted / m.gangadhar
Example
Class.forName("oracle.jdbc.driver.OracleDriver")
first it loads th class name at run time
second it executes the static initializer containg the code
of driver class i.e
static
{
try{
DriverManager.registerDriver(new Driver());
}
catch(Exception e){}
}
then it creates the object for the driver class and
registers that object in to the DriverManager
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What is a datasource in java?
What is jdbc explain?
How to connect multiple database in jdbc?
What is ODBC and JDBC? How do you connect the Database?
Is jdbc part of j2ee?
What is drivermanager in java?
What is JDBC DataSource and what are it’s benefits?
What is dburl?
What is @entity in java?
Explain jdbc savepoint?
What is the fastest type of JDBC driver?
How many rowset are available in jdbc?
What are different types of ResultSet?
What is resultsetmetadata?
What are the different types of statements? How we can you use preparedstatement.