Java Class isInterface() MethodThe isInterface() method of java Class class checks if the specified class object represents interface or not. If not then return false. SyntaxParameterNA Returnstrue if this object represents an interface; false otherwise. ThrowsNA Example 1Test it NowOutput: It is an interface ? : false Example 2Test it NowOutput: true Next TopicJava Class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India