Home Answers Viewqa Java-Beginners Class.forName()

 
 


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

Hi,

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

Thanks
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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.