what does the method Class.forName returns?

Answer Posted / priyank jain

Static method Class.forName(String className) returns the
Object for the classname specified in argument passed to
method.
Also Class.forName used to load drivers.
Ex. In JDBC call
Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
automatically creates an instance of a EmbeddedDriver and
registers it with the DriverManager.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How java can be connected to a database?

576


Is jdbc a web technology?

504


What are common JDBC Exceptions?

562


Does sql allow null values ?

559


Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?

575






What are the main steps in java to make JDBC connectivity?

585


What is data source in java?

534


What is statement and resultset in jdbc?

508


What is the benefit of having jdbcrowset implementation?

547


What do you understand by jdbc datasource?

607


What is the execute method in java?

557


What are the classes and methods used for sending sql statements to database?

552


What is the limitation of PreparedStatement and how to overcome it?

646


What is jdbc connection interface?

529


What is the return type of class.forname() method?

558