Returns a Field
object that reflects the specified declared
field of the class or interface represented by this Class
object. The name
parameter is a String
that specifies
the simple name of the desired field.
If this Class
object represents an array type, then this
method does not find the length
field of the array type.
name | the name of the field |
Field
object for the specified field in this
class
NoSuchFieldException | if a field with the specified name is not found. | |
NullPointerException | if name is null | |
SecurityException
| If a security manager, s, is present and any of the
following conditions is met:
|
@jls 8.2 Class Members
@jls 8.3 Field Declarations
Diagram: Class, Package, Module