Modifier.classModifiers() has the following syntax.
public static int classModifiers()
In the following code shows how to use Modifier.classModifiers() method.
import java.lang.reflect.Modifier; public class Main { public static void main(String... args) throws Exception { System.out.println(Modifier.toString(Modifier.classModifiers())); } }
The code above generates the following result.