Java Class getAnnotatedSuperclass() MethodThe getAnnotatedSuperclass() method of java Class class returns an AnnotatedType object that shows the use of a type to specify the superclass of the entity represented by this(calling class object) Class object. SyntaxParameterNo parameter is passed. ReturnsAn object representing the superclass ThrowsDoes not throw an exception. Example 1Test it NowOutput: Type Name : java.lang.Thread Annotations : [] Declared Annotations: [] AnnotatedType class: sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl AnnotatedType class implementing interfaces: [interface java.lang.reflect.AnnotatedType] 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