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

Result set’s index starts with 0 or 1?

971


Does jdbctemplate use prepared statements?

862


How do you insert images into database using jdbc?

1015


What are the steps to connect to the database in java?

910


Why do you use a data source object for a connection?

969


How many types of jdbc drivers are there?

945


How MS-Access DB can be accessed over a network, using JDBC API?

2383


What is jdbc vs odbc?

901


Explain the locking system in jdbc?

892


How do I insert an image file (or other raw data) into a database?

914


What is the meaning of connection?

906


What are the three parts of a jdbc url?

959


What are the components of jdbc?

937


How can I manage special characters when I execute an insert query?

896


How many jdbc driver types are there?

874