Get Access Specifiers and Modifiers of a Class

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.

2 thoughts on “Get Access Specifiers and Modifiers of a Class

    1. S. Nageswara Rao, Corporate Trainer Post author

      In Java, modifiers and access modifiers are both one and the same. Access modifiers modifies the access (where as specifiers specifies the access). Generally access specifiers works between the classes of different packages where as modifiers works within one program also. For example, if a method is static (in the same class even), the method can be called without the help of an object (it is the modification, else, the method should be called with an object).

Leave a Reply

Your email address will not be published. Required fields are marked *