Meaningless Drivel is fun!
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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java reflection" Watch "java reflection" New topic

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.
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
I agree. Here's the link:
subject: java reflection
It's not a secret anymore!