Modifiers interfaceModifiers() method in Java with Examples Last Updated : 24 Sep, 2019 Comments Improve Suggest changes Like Article Like Report The interfaceModifiers() method of java.lang.reflect.Modifier class is used to get an integer value together with the modifiers of source language that can be applied to an interface. Syntax: public static boolean interfaceModifiers() Parameters: This method accepts nothing. Return: This method returns an int value OR-ing together the source language modifiers that can be applied to an interface. Below programs illustrate interfaceModifiers() method: Program 1: Java // Java program to illustrate // interfaceModifiers() method import java.lang.reflect.*; public class GFG { public static void main(String[] args) throws NoSuchFieldException, SecurityException { // get Modifier using interfaceModifiers() int result = Modifier.interfaceModifiers(); System.out.println("Interface Modifiers: " + Modifier.toString(result)); } } Output: Interface Modifiers: public protected private abstract static strictfp Program 2: Java // Java program to illustrate // interfaceModifiers() import java.lang.reflect.*; public class GFG { public static void main(String[] args) throws NoSuchFieldException, SecurityException { // get Modifier // using interfaceModifiers() int result = Modifier.interfaceModifiers(); System.out.println("Int Value: " + result); } } Output: Int Value: 3087 References: https://docs.oracle.com/javase/10/docs/api/java/lang/reflect/Modifier.html#interfaceModifiers() Comment More infoAdvertise with us Next Article Modifier isInterface(mod) method in Java with Examples A AmanSingh2210 Follow Improve Article Tags : Java Java-Functions java-lang-reflect-package Java-Modifier Practice Tags : Java Similar Reads Modifier isInterface(mod) method in Java with Examples The isInterface(mod) method of java.lang.reflect.Modifier is used to check if the integer argument includes the interface modifier or not. If this integer parameter represents interface type Modifier then method returns true else false. Syntax: public static boolean isInterface(int mod) Parameters: 2 min read Modifier isInterface(mod) method in Java with Examples The isInterface(mod) method of java.lang.reflect.Modifier is used to check if the integer argument includes the interface modifier or not. If this integer parameter represents interface type Modifier then method returns true else false. Syntax: public static boolean isInterface(int mod) Parameters: 2 min read Modifiers fieldModifiers() method in Java with Examples The fieldModifiers() method of java.lang.reflect.Modifier class is used to get an integer value together with the modifiers of source language that can be applied to a field. Syntax: public static boolean fieldModifiers() Parameters: This method accepts nothing. Return: This method returns an int va 1 min read Modifiers fieldModifiers() method in Java with Examples The fieldModifiers() method of java.lang.reflect.Modifier class is used to get an integer value together with the modifiers of source language that can be applied to a field. Syntax: public static boolean fieldModifiers() Parameters: This method accepts nothing. Return: This method returns an int va 1 min read Modifier isStrict(mod) method in Java with Examples The isStrict(mod) method of java.lang.reflect.Modifier is used to check if the integer argument includes the strictfp modifier or not. If this integer parameter represents strictfp type Modifier then method returns true else false. Syntax: public static boolean isStrict(int mod) Parameters: This met 2 min read Modifier isStrict(mod) method in Java with Examples The isStrict(mod) method of java.lang.reflect.Modifier is used to check if the integer argument includes the strictfp modifier or not. If this integer parameter represents strictfp type Modifier then method returns true else false. Syntax: public static boolean isStrict(int mod) Parameters: This met 2 min read Like