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

How can we set null value in jdbc preparedstatement?

972


What are collection pools?

982


What is resultset in jdbc with example?

946


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

880


How can I instantiate and load a new CachedRowSet object from a non-JDBC source?

991


What is jdbc and its advantages?

1066


Why hibernate is better than jdbc?

937


How the JDBC application works?

956


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

1224


What is jdbc resultsetmetadata interface?

969


What is a jdbc connection pool?

956


Give an example for execution of sql statement.

1046


What is while rs next ())?

955


What is resultsetmetadata?

912


Does sql allow null values ?

978