Reflection Basics

Inspecting classes at runtime

Reflection Basics

Reflection allows runtime inspection and manipulation of classes.

Code Examples

Loading class dynamically

java
1
2Class<?> c = Class.forName("User");
3          

AI Tutor

Ask about the topic

Sign in Required

Please sign in to use the AI tutor

Sign In