Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Java Reflection API

Runtime class inspection and manipulation

Java

Overview

Reflection allows inspection of classes, interfaces, fields and methods at runtime.

Topics

  1. Class Object - Getting and using Class objects
  2. Methods - Invoking methods dynamically
  3. Fields - Accessing and modifying fields
  4. Constructors - Creating instances dynamically
  5. Dynamic Proxy - Creating proxies at runtime

Example

Class<?> clazz = MyClass.class;
Method method = clazz.getMethod("methodName");
Object result = method.invoke(instance);

Status: ✅ Complete