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.
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:
Interface Modifiers: public protected private abstract static strictfp
Int Value: 3087
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.