Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reflection in java

 
Parshuram Walunjkar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
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.
Thanks.
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to Java in General (beginning)
 
susha pillu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Reflection:-
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic