/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.Annotation;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Class<?> clazz = MySecondInterface.class;
		
		Retriable annotation = clazz.getAnnotation(Retriable.class);
		System.out.println("Retriable annotation: " + annotation);
		
		Annotation[] annotations = clazz.getAnnotations();
		System.out.println("Annotations: " + Arrays.toString(annotations));
		
		annotations = clazz.getDeclaredAnnotations();
		System.out.println("Declared Annotations: " + Arrays.toString(annotations));
	}

}

@Retriable
interface MyInterface {
	public void myMethod();
}

interface MySecondInterface extends MyInterface {
	
}



@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@interface Retriable {
	
}