aspose file tools
The moose likes Java in General and the fly likes Class.forName() significance Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Class.forName() significance" Watch "Class.forName() significance" New topic
Author

Class.forName() significance

John David
Greenhorn

Joined: Aug 17, 2006
Posts: 29
hi folks i want to know the real significance of the method class.forName()?
can we use it for load classes other than jdbc ?
awaiting for eloberated reply..
thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16487
    
    2

Yes.

If you want me to elaborate, yes, you can use it to load any class.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2300
You can use it to create object at runtime , just by the classname.(and offcourse the .class file should be there in the classpath )


Rahul Bhattacharjee
LinkedIn - Blog
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Class.forName() significance
 
Similar Threads
Hey Map - In Russia . . . . .
Class.forName()
Class.forName()
Dynamically loading a class
what this method do in JDBC?