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 exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail

Answer Posted / sudhakar

By the end of the execution of Class.forName("Driver
class"); the driver class should be loaded into the memory
but also
1. The driver class should be initialized
2. Should be registered with the driver manager class
The above two operations are not done by forName() . So a
pure Static() block is defined in which the above two tasks
are manipulated and by which we are able to get connection,
immediately after loading the driver class without writing
any code to initialize the driver class.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the common jdbc exceptions?

949


What is jdbc oracle thin?

876


What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

966


How to make updates to updatable result sets in jdbc?

908


Why do we need jdbc?

1063


What is a connection string used for?

971


How can you know about drivers and database information ?

1002


What is database deadlock ?

1190


Does sql allow null values ? Can we use it within where clause ?

980


What are four types of JDBC driver?

1143


What is jdbc driver for sql server?

1003


What is an escape syntax?

998


Why is jdbc used?

945


What does the jdbc connection interface?

986


How to connect html page to database using jdbc?

896