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
Is odbc an api?
Are all the required JDBC drivers to establish connectivity to my database part of the JDK?
What is meant by jdbc and odbc?
Explain the difference between inner and outer join ?
What is the difference between ojdbc6 and ojdbc7?
Which Java and java.sql data types map to my specific database types?
How does jdbc work?
Which is better jpa or jdbc?
password, is stored in as plain text. What can I do to protect my passwords?
What is connection pooling and why it is used?
Where is ojdbc14 jar located?
What is the use of jdbc api?
What is sqlwarning and discuss the procedure of retrieving warnings?
What are the ddl statements?
What is the difference between execute, executeQuery, executeUpdate?