Reflection

Could you explain the reflection packages in java?
LVL 9
Manikandan ThiagarajanSenior consultantAsked:
Who is Participating?
 
CEHJCommented:
It's there to 'look inside' classes programmatically
0
 
Manikandan ThiagarajanSenior consultantAuthor Commented:
could you explain with simple example?
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Basically it helps you get the structure of a class, what constructors it has, what methods it has, what data-members it has and it also allows you to create an object of the class given the name of the class as a "String" and even invoke methods on it on run-time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.