reflection java

Get Access Specifiers and Modifiers of a Class

It is advised to read the notes on Java Reflection API before attempting the programs. Example to get Access Specifiers and modifiers of a class.

Reflection API Java

Studying the properties of a class at runtime is known Reflection (in JavaBeans, this is called as Introspection). The properties include knowing the instance variables, constructors and methods with their access specifiers and modifiers. Generally reflection is used by JVM and tools that loads a class and do operations on…