title: this: Cannot use this in static context
body: <p>Can you please help me with below code. The error is: <strong>"Cannot use This in a static context"</strong></p>
  
  <pre><code>public class Sample2 {
      /**
       * @param args
       */
      public static void main(String[] args) 
      {
          Sample2 sam=new Sample2();  
  
          //Below code works fine
          System.out.println(sam);
  
          //Below code is displaying error
          System.out.println(this);
      }
  }
  </code></pre>