Java Modifier.isStrict(int mod)
Syntax
Modifier.isStrict(int mod) has the following syntax.
public static boolean isStrict(int mod)
Example
In the following code shows how to use Modifier.isStrict(int mod) method.
import java.lang.reflect.Modifier;
// w w w .ja v a2 s .c om
public class Main {
public static void main(String[] args) throws Exception {
Class<?> clazz = String.class;
int modifier = clazz.getModifiers();
if (Modifier.isStrict(modifier)) {
System.out.println("isStrict");
}
}
}