Java Modifier .constructorModifiers ()

Syntax

Modifier.constructorModifiers() has the following syntax.

public static int constructorModifiers()

Example

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


import java.lang.reflect.Modifier;
/* w w  w  .jav  a  2s .  c o m*/
public class Main {
  public static void main(String... args) throws Exception {
      System.out.println(Modifier.toString(Modifier.constructorModifiers()));
  }

}

The code above generates the following result.





















Home »
  Java Tutorial »
    java.lang.reflect »




Array
Constructor
Field
Method
Modifier
ParameterizedType
TypeVariable