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 isolation level is used by the DBMS when inserting, updating and selecting rows from a database?
The new features of the JDBC 2.0 API, will be supported for JDBC-ODBC Bridge?
What is jdbc odbc bridge?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
What is jdbc and its types?
Does the JDBC-ODBC Bridge work with Microsoft J++?
How to connect multiple database in jdbc?
What does it mean to "materialize" data?
How can we execute stored procedures using callablestatement?
What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?
Explain about the drive manager class working?
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
What are the standard isolation levels defined by JDBC?
Which is faster jdbc or odbc?
Explain the role of driver in jdbc.