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

Answer Posted / sangeeta

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.jsbc.odbc.JdbcOdbcDriver");

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to connect to multiple databases simultaneously?

741


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

815


What is jdbc stand for?

670


How do I set properties for a JDBC driver and where are the properties stored?

672


What is the latest version of JDBC? What are the new features added in that?

707






Explain the life cycle of jdbc.

791


What is an advantage of using the jdbc connection pool?

637


What is xe in oracle jdbc url?

720


Where is jdbc used?

666


Explain the steps in writing a java program using jdbc?

637


How data can be inserted into long row column of database?

1889


What are the factors that the jdbc driver performance depends upon?

694


What is JDBC PreparedStatement?

683


What is the meaning of “dirty read” in the database?

737


What are the advantages of using preparedstatement over statement?

732