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 does jdbc setmaxrows method do?
Describe how the jdbc application works.
How do I receive a ResultSet from a stored procedure?
Explain the necessary steps to connect to the database in java?
What is jdbc servlet?
How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?
What is jdbc connection string?
What are the ddl statements?
Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?
How you restrict a user to cut and paste from the html page using java programing?
What are clob and blob data types in jdbc?
What is in terms of jdbc a datasource?
What is difference between jdbc and odbc?
How do I find whether a parameter exists in the request object?
Does jdbctemplate use prepared statements?