Retrieve fields of a class Reflection Java

Retrieve fields of a class Reflection Java

It is advised to read the notes on Java Reflection API before attempting the programs.

Example on Retrieve fields of a class

getFields() of class java.lang.Class returns only public fields.

Leave a Reply

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