This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java reflection  RSS feed

 
Raj Jindal
Ranch Hand
Posts: 50
  • 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
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!