Java Reflection - 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;

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.