Java Modifier.methodModifiers()
Syntax
Modifier.methodModifiers() has the following syntax.
public static int methodModifiers()
Example
In the following code shows how to use Modifier.methodModifiers() method.
import java.lang.reflect.Modifier;
// w w w .j ava2 s. c o m
public class Main {
public static void main(String... args) throws Exception {
System.out.println(Modifier.toString(Modifier.methodModifiers()));
}
}
The code above generates the following result.