title: Understanding annotation in Java
body: <p>I was trying to go through some online material to learn annotation in java.</p>
  
  <p>In the following code, what happened to my dear "Hello world" string which I passed in this line: <code>@Test_Target(doTestTarget="Hello World !")</code>?</p>
  
  <pre><code>@Target(ElementType.METHOD)
  public @interface Test_Target {
     public String doTestTarget();
  }
  </code></pre>
  
  <p>above is the annotation defined and below is its usage</p>
  
  <pre><code>public class TestAnnotations {
     @Test_Target(doTestTarget="Hello World !")
     private String str;
     public static void main(String arg[]) {
        new TestAnnotations().doTestTarget();
     }
     public void doTestTarget() {
        System.out.printf("Testing Target annotation");
     }
  }
  </code></pre>
  
  <p>When I run this code it is only printing <code>Testing Target annotation</code>  </p>
  
  <p>Please help me out, I am completely new to annotation.</p>