This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Dynamically loading a class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Dynamically loading a class" Watch "Dynamically loading a class" New topic
Author

Dynamically loading a class

Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

Interesting question "How can we dynamically load a class?"
[ August 20, 2008: Message edited by: Vyas Sanzgiri ]

===Vyas Sanzgiri===
My Blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Class.forName()


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Praveen Kumar
Ranch Hand

Joined: Nov 06, 2006
Posts: 133
Yes,

Class.forName(ClassName) uses to load the class dynamically.

new Class() loads the class statically.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically loading a class
 
Similar Threads
Spring 2.5 : Mapping two different Class Impl for a single Interface in application-Context.xml
Class.forName
Cost of Class.forName()
dynamic access of interface members
creating dynamic object