Java Class getAnnotatedInterfaces() Method21 Mar 2025 | 2 min read The getAnnotatedInterfaces() method of java Class class returns an array of the objects of the type AnnotatedType that represents the use of types to specify superinterfaces of the entity represented by this(Current class object) Class object. SyntaxParameterNo parameter is passed. ReturnsAn array representing the super interfaces ThrowsDoes not throw any Exception. Example 1Output: Anotated Type :interface java.io.Serializable Annotations :[] Declared Annotations :[] Example 2Output: Annotated Type :interface java.io.Serializable --------------------------------------------------------------------- Annotations :[@ClassgetAnnotatedInterfaceExample2$FileSystem()] Declared Annotation :[@ClassgetAnnotatedInterfaceExample2$FileSystem()] Next TopicJava Class |
We request you to subscribe our newsletter for upcoming updates.

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