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 are the types of jdbc drivers that exist?
What is a jdbc driver and how many jdbc drivers are available?
How do I start debugging problems related to the JDBC API?
What is the difference between ojdbc6 and ojdbc7?
What does the jdbc databasemetadata interface?
Discuss the procedure of retrieving warnings?
Explain the locking system in jdbc & its types?
How to move the cursor in scrollable resultset ?
Why we use while rs next ())?
What is jdbc and why is it required?
Can I get a null resultset?
What are the ddl statements?
What is difference between statement and preparedstatement in jdbc?
What is db client?
Why is jdbc needed?