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

Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?

998


What is odbc and jdbc drivers?

956


What is device controller?

1059


What is connection commit?

929


How can I connect mysql or oracle with java?

966


What are the 4 types of jdbc drivers?

1016


What protocol does jdbc use?

976


How you restrict a user to cut and paste from the html page using java programing?

887


What are the differences between statement and preparedstatement interface?

986


Is jdbc secure?

974


Why do we need jdbc driver?

891


What are the different types of lockings in jdbc?

923


Explain creation of statement object with connection method create method with help of an example.

971


What is in term of jdbc a datasource?

916


How do I receive a ResultSet from a stored procedure?

973