Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what does the method Class.forName returns?

Answer Posted / m.gangadhar

Example
Class.forName("oracle.jdbc.driver.OracleDriver")

first it loads th class name at run time
second it executes the static initializer containg the code
of driver class i.e
static
{
try{
DriverManager.registerDriver(new Driver());
}
catch(Exception e){}
}

then it creates the object for the driver class and
registers that object in to the DriverManager

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is odbc an api?

981


Are all the required JDBC drivers to establish connectivity to my database part of the JDK?

935


What is meant by jdbc and odbc?

852


Explain the difference between inner and outer join ?

952


What is the difference between ojdbc6 and ojdbc7?

815


Which Java and java.sql data types map to my specific database types?

1008


How does jdbc work?

837


Which is better jpa or jdbc?

868


password, is stored in as plain text. What can I do to protect my passwords?

887


What is connection pooling and why it is used?

940


Where is ojdbc14 jar located?

895


What is the use of jdbc api?

926


What is sqlwarning and discuss the procedure of retrieving warnings?

956


What are the ddl statements?

809


What is the difference between execute, executeQuery, executeUpdate?

965