Java Class getAnnotatedInterfaces() MethodThe 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 1Test it NowOutput: Anotated Type :interface java.io.Serializable Annotations :[] Declared Annotations :[] Example 2Test it NowOutput: Annotated Type :interface java.io.Serializable --------------------------------------------------------------------- Annotations :[@ClassgetAnnotatedInterfaceExample2$FileSystem()] Declared Annotation :[@ClassgetAnnotatedInterfaceExample2$FileSystem()] 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