File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class.forName ()" Watch "class.forName ()" New topic

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!
I agree. Here's the link:
subject: class.forName ()
It's not a secret anymore!