Java Class getInterfaces() MethodLast Updated : 17 Mar 2025 The getInterfaces() method of java Class class returns the interfaces directly implemented by the class or the interface represented by the current object. SyntaxParameterNo parameter is passed. ReturnsAn array of interfaces. ThrowsDoes not throw an exception. Example 1Output: Class :: java.lang.Thread Classes :: [class java.lang.Thread$State, interface java.lang.Thread$UncaughtExceptionHandler] Interfaces :: [interface java.lang.Runnable] Example 2Output: interface java.io.Serializable interface java.lang.Runnable Next TopicJava Class |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India