Runtime class inspection and manipulation
Reflection allows inspection of classes, interfaces, fields and methods at runtime.
- Class Object - Getting and using Class objects
- Methods - Invoking methods dynamically
- Fields - Accessing and modifying fields
- Constructors - Creating instances dynamically
- Dynamic Proxy - Creating proxies at runtime
Class<?> clazz = MyClass.class;
Method method = clazz.getMethod("methodName");
Object result = method.invoke(instance);Status: ✅ Complete