PrepZone Logo
PrepZone
Back to Java

Java · Hard

Differentiate between reflection and introspection.

JavaCore Java

Answer preview

Reflection — (java.lang.reflect): The ability to inspect and modify the structure and behavior of classes, methods, fields, and constructors at runtime. You can access private fields, invoke private methods, and create instances dynamically.…