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 does jdbc driver work?

1039


What is jdbc in dbms?

1114


What is dburl?

1038


Write a program JDBCcode forfetching student database with SQL.

1176


How do java applications access the database using jdbc?

1089


What are the advantages of using preparedstatement over statement?

1077


What is jdbc odbc connection?

1018


Is java a database?

1015


What does the jdbc resultsetmetadata interface?

997


What is the use of the statement in jdbc?

979


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

1034


How to update a resultset programmatically?

1143


Which type of JDBC driver is the fastest one?

1140


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

974


Can I use JDBC to execute non-standard features that my DBMS provides?

1067