Answer Posted / rajiv
hi......
Class.forName() is basically used to load the diver. forName() is static method thats why its directly call with class name( i:e Class)
which return java.lang.class object. n with the help of that object we establish the connection with database.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What causes the "No suitable driver" error?
How a database driver can be loaded with jdbc 4.0 / java 6?
How can I get information about foreign keys used in a table?
What is a JDBC 2.0 DataSource?
What is the JDBC syntax for using a literal or variable in a standard Statement?
What is namedparameterjdbctemplate?
What protocol does jdbc use?
How does jdbc driver work?
Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?
Why jdbc is used in java?
Give a way to check that all result sets have bin accessed and update counts are generated by execute method.
What are the standard isolation levels defined by JDBC?
What is the use of dialect?
What do you understand by jdbc datasource?
What are the differences between execute, executequery, and executeupdate?