Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Class.forName()
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
Class.forName()
1 Answer(s)      4 years and 3 months ago
Posted in : Java Beginners


Hi,

What is Class.forName() does and how it is useful? What does it do?

Thanks

Advertisement
View Answers

October 5, 2010 at 3:48 PM


It loads the class into the ClassLoader. It returns the Class. Using that you can get the instance ( "class-instance".newInstance() ).

Thanks


Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com