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

Explain the necessary steps to connect to the database in java?

554


What is jdbc class forname?

491


How to set NULL values in JDBC PreparedStatement?

545


What is jdbc thin client in oracle?

493


What is the JDBC syntax for using a literal or variable in a standard Statement?

564






How do I receive a ResultSet from a stored procedure?

527


What are the advantages of database connection pooling?

490


What is jdbc explain?

496


What does executeupdate return in jdbc?

512


Explain how data flows from view to db and reverse

1634


Explain the two tier and three tier architecture of jdbc.

527


What is the role of the jdbc drivermanager class?

487


State the different connection methods used for creating different types of sql.

503


Under what circumstances, that all four drivers are used?

1907


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

665