File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Reflection in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reflection in java" Watch "Reflection in java" New topic

Reflection in java

Parshuram Walunjkar

Joined: Jul 25, 2001
Posts: 8

I would like to know about what is early and late binding in java and also i would like to know about Reflection.
please give me ur suggession.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Moved to Java in General (beginning)

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
susha pillu

Joined: Jul 25, 2001
Posts: 8
Binding is related to the object being accessed and when. Now object can be accessed at the compile as well as run time i.e. danamically.
In late binding, no information about the object being accessed is availbale to the application. The info would be provided at run time i.e. dyanamically. However, in early binding the info about the object being accessed is available with the application. Hence early binding is considered to be faster.
Java reflection is supports dynamic (run time) retrieval of information about classes and data structures by name, and allows for their manipulation within an executing Java program. This feature is extremely powerful and has no equivalent in other conventional languages such as C, C++, Fortran, or Pascal. More info on the sun site.
JavaBeans relies heavily on the reflection API to give application builder tools the capability of assessing the exported properties of JavaBeans components.

I agree. Here's the link:
subject: Reflection in java
It's not a secret anymore!