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
|