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
Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?
What is odbc and jdbc drivers?
What is device controller?
What is connection commit?
How can I connect mysql or oracle with java?
What are the 4 types of jdbc drivers?
What protocol does jdbc use?
How you restrict a user to cut and paste from the html page using java programing?
What are the differences between statement and preparedstatement interface?
Is jdbc secure?
Why do we need jdbc driver?
What are the different types of lockings in jdbc?
Explain creation of statement object with connection method create method with help of an example.
What is in term of jdbc a datasource?
How do I receive a ResultSet from a stored procedure?