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

How can we maintain the integrity of a database by using jdbc?

1157


What is DML?

1068


What is JDBC Batch Processing and what are it’s benefits?

1087


What is JDBC Statement?

1047


Why would you use setautocommit(false) in jdbc?

1270


What are the different types of resultset?

1024


How can we store and retrieve images from the database?

1012


Name the new features added in jdbc 4.0.

1030


What is ojvm used for?

1044


What are the different types of statements in jdbc?

972


What are the advantages of using preparedstatement in java?

1033


What are collection pools?

1029


Is jdbc connection secure?

1013


Is possible to open a connection to a database with exclusive mode with JDBC?

1014


Where is ojdbc14 jar located?

995