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 is the use of Class.forName

Answer Posted / vivek katta

Class.forName will basically load a class. As part of class loading, static variables
will be initialized and static blocks present in the class will be executed.

This is the concept used in JDBC to register driver(s). A static block in the driver
class gets executed which inturn registers the JDBC driver with the connection
manager.

Is This Answer Correct ?    66 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does module-relative mean?

1230


What is Remote Server?

2256


What is the difference between the session.get() method and the session.load() method?

1126


When a thread blocks on i/o?

1171


How will you pass parameters in RMI? Why do you serialize?

1316


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

3061


What is the difference between ear, jar and war file?

1188


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

1086


What is the purpose of the notifyall() method?

1093


Do I have to use jsps with my application?

1070


Is jvm a overhead?

1163


Which containers use a border layout as their default layout?

1203


Why are some of the class and element names counter-intuitive?

1218


What value does read() return when it has reached the end of a file?

1077


What is the relationship between the canvas class and the graphics class?

1077