Mega Code Archive

 
Categories / Java Book / 008 Reflection
 

0444 Field Reflection

A Field provides information about a field of a class or an interface. Get the field modifiers, name and type int getModifiers() Returns the Java language modifiers for the field. String getName() Returns the name of the field. Class<?> getType() Returns a Class object that identifies the declared type.