what exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail
Answer Posted / yash
In addition to above answers, using Class.forName the
instance of driver is automatically registered with the
DriverManager. Thus it saves us from the efforts of
creating new instance of driver and registering it with
DriverManager!!
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What are the basic exceptions in jdbc?
Under what circumstances, that all four drivers are used?
Does sql allow null values ? Can we use it within where clause ?
How many types of statements are there in jdbc?
How to get the Database server details in java program?
Is jdbc database independent?
How do I set properties for a JDBC driver and where are the properties stored?
What is an escape syntax?
What is JDBC Connection? Explain steps to get Database connection in a simple java program.
What is jdbc and explain jdbc architecture?
What do you mean by two phase commits?
Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?
How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?
If I use the JDBC API, do I have to use ODBC underneath?
Which database is used for java?