java.lang.reflect
package in Java.
Class
β Represents a class or interface; used to obtain metadata.
Field
β Represents a field of a class; used to read/write field values dynamically.
Method
β Represents a method; used to invoke methods dynamically.
Constructor
β Represents a constructor; used to create new objects dynamically.
Modifier
β Provides static methods to check class or member modifiers (public, private, static, etc.).
Package
β Represents a Java package; used to get package info.
Array
β Provides static methods to dynamically create and access arrays.
SecurityManager
can restrict reflective access to sensitive parts of code.
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
Weβre here to make our tutorials better based on your thoughts and suggestions.