jQuery in Action, 2nd edition*
The moose likes Java in General and the fly likes Use of reflection API 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 "Use of reflection API" Watch "Use of reflection API" New topic

Use of reflection API

Vijay Tidake
Ranch Hand

Joined: Nov 04, 2008
Posts: 146


Currently I am reading about the Reflection API in java.So I have one query regarding the use of Reflection APIs.
I read that reflection is meant for the "introspection" of a java beans.Is this the only use of Reflection?

If not,will you please enlist some of the practical use of the java Reflection API,other than getting the info about the class ie method,constructors etc.


The important thing is not to stop questioning.Curiosity has its own reason for existing.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30138

Calling a method dynamically. This is useful in tooling, when you don't know the method signature at compile time.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Use of reflection API
Similar Threads
Java Reflection for EJB
how do I use methods in external class file?
Can i build and compile a JAVA pgm in another JAVA program?
Reflection in jdk1.5?
Doubt regarding EJBMetaData Vs Reflection API