my dog learned polymorphism*
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 Android Security Essentials Live Lessons 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java reflection
 
Similar Threads
Urgent...........plz help
Embedding a Flash movie into a Java
diff b/w jdk and j2sdk?
Third party tools
is anybody from kolkata?