?
Solved

jav Reflection concepts ??

Posted on 1997-06-10
1
Medium Priority
?
553 Views
Last Modified: 2013-12-29
can anyone explain in details the idea behind the reflection?
When we use it ?
How we use it ?
0
Comment
Question by:leungtay
1 Comment
 
LVL 6

Accepted Solution

by:
jpk041897 earned 100 total points
ID: 1221527
According to Java:
 
------------------------------------------------------------------------


Reflection


Enables Java code to discover information about the fields, methods and constructors of loaded classes, and to use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions. The API accommodates applications that need access to either the public members of a target object (based on its runtime class) or the members declared by a given class.



Reflection is required for Introspection, the teqniche used by Beans to obtain information on the methods defined in a Bean

In other words, Reflection is a form of RTTI (Run Time Type Information) that allows you to obtain the names and referances of the methods defined in a given class.

For more information see:

http://java.sun.com/products/jdk/1.1/docs/guide/reflection/index.html
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question