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

What is a datasource in java?

937


What is jdbc explain?

899


How to connect multiple database in jdbc?

1058


What is ODBC and JDBC? How do you connect the Database?

1019


Is jdbc part of j2ee?

962


What is drivermanager in java?

924


What is JDBC DataSource and what are it’s benefits?

1189


What is dburl?

976


What is @entity in java?

936


Explain jdbc savepoint?

954


What is the fastest type of JDBC driver?

1044


How many rowset are available in jdbc?

1096


What are different types of ResultSet?

1045


What is resultsetmetadata?

878


What are the different types of statements? How we can you use preparedstatement.

949