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
How does jdbc driver work?
What is jdbc in dbms?
What is dburl?
Write a program JDBCcode forfetching student database with SQL.
How do java applications access the database using jdbc?
What are the advantages of using preparedstatement over statement?
What is jdbc odbc connection?
Is java a database?
What does the jdbc resultsetmetadata interface?
What is the use of the statement in jdbc?
What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?
How to update a resultset programmatically?
Which type of JDBC driver is the fastest one?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
Can I use JDBC to execute non-standard features that my DBMS provides?