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
Explain the necessary steps to connect to the database in java?
What is jdbc class forname?
How to set NULL values in JDBC PreparedStatement?
What is jdbc thin client in oracle?
What is the JDBC syntax for using a literal or variable in a standard Statement?
How do I receive a ResultSet from a stored procedure?
What are the advantages of database connection pooling?
What is jdbc explain?
What does executeupdate return in jdbc?
Explain how data flows from view to db and reverse
Explain the two tier and three tier architecture of jdbc.
What is the role of the jdbc drivermanager class?
State the different connection methods used for creating different types of sql.
Under what circumstances, that all four drivers are used?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?