JEE Exam Questions & Answers
Reflection - ANSWERSThe ability of a program to query and modify its state "as data" during the
execution of the program.
Introspection - ANSWERSThe ability of a program to query or obtain information about itself.
Intercession - ANSWERSThe ability of a program to modify it's execution state, modify its own
interpretation or meaning, or add new behaviours to the program it is executing.
What are the categories for Reflection? - ANSWERSStructural Reflection and Behavioural
reflection
Structural Reflection - ANSWERSCan be divided into Structural Introspection and Intercession.
Structural introspection is the ability to query about the implementation of its data and code.
Structural intercession is the ability to modify or create new data structure and code.
Behavioral Reflection - ANSWERSCan be further divided into Behavioral Introspection and
Intercession. Behavioral introspection is the ability of a program to obtain information about its
runtime environment. Behavioral intercession is the ability to modify it's runtime environment.
Reification - ANSWERSThe process of encoding the execution state into data. This is necessary in
order to grant a program the ability to query or modify its state. This is necessary for reflection.
Reflection in Java - ANSWERSLimited to introspection which lets you obtain class information
about an object at runtime such as fields, methods, modifiers, and the superclass of a class.
Reflection - ANSWERSThe ability of a program to query and modify its state "as data" during the
execution of the program.
Introspection - ANSWERSThe ability of a program to query or obtain information about itself.
Intercession - ANSWERSThe ability of a program to modify it's execution state, modify its own
interpretation or meaning, or add new behaviours to the program it is executing.
What are the categories for Reflection? - ANSWERSStructural Reflection and Behavioural
reflection
Structural Reflection - ANSWERSCan be divided into Structural Introspection and Intercession.
Structural introspection is the ability to query about the implementation of its data and code.
Structural intercession is the ability to modify or create new data structure and code.
Behavioral Reflection - ANSWERSCan be further divided into Behavioral Introspection and
Intercession. Behavioral introspection is the ability of a program to obtain information about its
runtime environment. Behavioral intercession is the ability to modify it's runtime environment.
Reification - ANSWERSThe process of encoding the execution state into data. This is necessary in
order to grant a program the ability to query or modify its state. This is necessary for reflection.
Reflection in Java - ANSWERSLimited to introspection which lets you obtain class information
about an object at runtime such as fields, methods, modifiers, and the superclass of a class.