This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes class.forName () Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class.forName ()" Watch "class.forName ()" New topic
Author

class.forName ()

Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138
What is the use of class.forName ()
Manoj Kumkumath
Ranch Hand

Joined: Dec 01, 2005
Posts: 71
It helps you to instantiate classes dynamically at the runtime
Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148


This does not instantiate a class. Rather it load the class with the classloader and returns the java.lang.Class object.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Well, one more step and you are there:


There is no emoticon for what I am feeling!
 
Consider Paul's rocket mass heater.
 
subject: class.forName ()