File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes java reflection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java reflection" Watch "java reflection" New topic
Author

java reflection

Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
what is java reflection ? what are the benefits of using java reflection ? any practiccal situation If anybody cud plz tell me.
Can anybody plz tell me some good and plain url's to understand java reflection ?
Thanks in advance
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Java reflection in the easiest explaination is that it discovers an object, or the object's type, methods, etc.
Check the java tutorial by Sun: reflection
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Here's a little exercise in reflection that might be interesting.
http://www.surfscranton.com/architecture/Interpreter.htm
There is one class in the source called Reflector that does all the reflection work.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
Don't get me started about those stupid light bulbs.
 
subject: java reflection
 
jQuery in Action, 3rd edition