File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java reflection

 
Raj Jindal
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 688
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic