InterviewSolution
| 1. |
What Is Reflection Api? How Are They Implemented? |
|
Answer» REFLECTION is the process of introspecting the features and state of a class at runtime and dynamically manipulate at run time. This is supported using Reflection API with built-in classes like Class, Method, FIELDS, Constructors etc. Example: Using Java Reflection API we can GET the class name, by using the getName method. Reflection is the process of introspecting the features and state of a class at runtime and dynamically manipulate at run time. This is supported using Reflection API with built-in classes like Class, Method, Fields, Constructors etc. Example: Using Java Reflection API we can get the class name, by using the getName method. |
|