This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
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 ()
Similar Threads
How to connect MySQL DB from JSP?
what this method do in JDBC?
Dynamically loading a class
An JDBC problem
JDBC connectivity