Java Modifier.fieldModifiers()

Syntax

Modifier.fieldModifiers() has the following syntax.

public static int fieldModifiers()

Example

In the following code shows how to use Modifier.fieldModifiers() method.


import java.lang.reflect.Modifier;
//www  .j  a  va  2 s  .  com
public class Main {
  public static void main(String... args) throws Exception {
      System.out.println(Modifier.toString(Modifier.fieldModifiers()));
  }

}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.lang.reflect »




Array
Constructor
Field
Method
Modifier
ParameterizedType
TypeVariable