toString() method is not overridden when a reference to Annotation is output in println()
<pre><code>package javaapplication20;
import java.lang.annotation.*;
import java.lang.reflect.*;

@Retention (RetentionPolicy.RUNTIME)
@interface MyAnno {
    String str();
    int yu();
}
@Retention (RetentionPolicy.RUNTIME)
@interface Wasp {
    double hg();
}
@MyAnno(str = "Falcon", yu=5 )
@Wasp(hg = 54.67)
public class Main {
        @MyAnno(str = "Raptor", yu=7 )
        @Wasp(hg = 90.56)
public static void meth(){
            Main ob = new Main();
            try{
                Annotation annon[] = ob.getClass().getAnnotations();
                System.out.println("All anotations for Main are ");
                for(Annotation a : annon){
                    System.out.println(a);
                }

                Method m = ob.getClass().getMethod("meth");
                Annotation annons[] = m.getAnnotations();
                System.out.println("All Annotations for meth() are ");
                for(Annotation a : annons){
                    System.out.println(a);
                }
            }catch(NoSuchMethodException e){
                System.out.println("No Match Found");
            }
        }
    public static void main(String[] args) {
 meth();
    }

}
</code></pre>

<p>OUTPUT :</p>

<pre><code>All anotations for Main are 
@javaapplication20.MyAnno(str=Falcon, yu=5)
@javaapplication20.Wasp(hg=54.67)
All Annotations for meth() are 
@javaapplication20.MyAnno(str=Raptor, yu=7)
@javaapplication20.Wasp(hg=90.56)
</code></pre>
