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 can we set null value in jdbc preparedstatement?
What are collection pools?
What is resultset in jdbc with example?
Which jdbc driver type s is are the jdbc odbc bridge?
How can I instantiate and load a new CachedRowSet object from a non-JDBC source?
What is jdbc and its advantages?
Why hibernate is better than jdbc?
How the JDBC application works?
What is JDBC DataSource and what are it’s benefits?
What is jdbc resultsetmetadata interface?
What is a jdbc connection pool?
Give an example for execution of sql statement.
What is while rs next ())?
What is resultsetmetadata?
Does sql allow null values ?