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
How java can be connected to a database?
Is jdbc a web technology?
What are common JDBC Exceptions?
Does sql allow null values ?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
What are the main steps in java to make JDBC connectivity?
What is data source in java?
What is statement and resultset in jdbc?
What is the benefit of having jdbcrowset implementation?
What do you understand by jdbc datasource?
What is the execute method in java?
What are the classes and methods used for sending sql statements to database?
What is the limitation of PreparedStatement and how to overcome it?
What is jdbc connection interface?
What is the return type of class.forname() method?