what exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail

Answer Posted / nitin upadhyay,raigarh(c.g)

By using this coding we load the driver.
Class is a predefined class and forName is the static
method of the class. which is used to load the driver in the
memory for connectivity.

For eg
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is drivermanager in java?

670


Explain about column name and getter method?

767


Why did my jdbc code throw a rollback sqlexception?

646


What is jdbc vs odbc?

691


What is a jdbc connection pool?

691






How to know howmuch data is truncated?

2074


What is JDBC Batch Processing and what are it’s benefits?

681


How many ways that we can view a result set?

745


What is 2 phase commit?

822


What do you mean by odbc?

752


What is the full form of jdbc and what is its purpose?

700


What is ODBC and JDBC? How do you connect the Database?

713


What causes no suitable driver error?

710


What does executequery return in java?

670


Explain the various types of locking system in jdbc?

644