What does Class.forName return?

Answer Posted / rajiv

hi......
Class.forName() is basically used to load the diver. forName() is static method thats why its directly call with class name( i:e Class)
which return java.lang.class object. n with the help of that object we establish the connection with database.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)

3889


What is database connection pooling? Advantages of using a connection pool?

543


Which jdbc driver type s is are the jdbc odbc bridge?

480


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

544


List some new features available in jdbc 4.0?

483






What is ojvm used for?

554


Explain the process of creating tables using NetBeans IDE?

530


How many jdbc driver types are there?

486


Why do we use jdbc statements?

511


How java can be connected to a database?

572


What is executequery in java?

498


What is the purpose of jdbc?

589


How many types of jdbc drivers are there?

557


How does jdbc driver work?

537


How can I manage special characters when I execute an insert query?

524