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

Can I run seam with jdk 1.4 and earlier?

994


Define prototype?

1071


what are getters and setters in Java with examples?

1782


Do I need to import javlang package any time? Why ?

1094


we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?

2422


Which are the different segments of memory?

1083


Why do threads block on i/o?

1263


Name the class that is used to bind the server object with RMI Registry?

2170


Will the general public have access to the infobus apis?

1057


What is the difference between RMI registry and OS Agent?

1149


What is a modular application?

1085


What are the diff types of exception?

1062


How would you create a button with rounded edges?

1155


What modifiers may be used with an interface declaration?

1138


Why won’t the jvm terminate when I close all the application windows?

1248