title: Can an interface method have a body?
body: <p>I know that an interface is like a 100% pure abstract class. So, it can't have method implementation in it. But, I saw a strange code. Can anyone explain it?</p>
  
  <p><strong>Code Snippet:</strong></p>
  
  <pre><code> interface Whoa {
          public static void doStuff() {
              System.out.println("This is not default implementation");
          }
   }
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My IDE is Intellij Idea 13.1. The project SDK is java 7 &lt;1.7.0_25>. The IDE is not showing any compiler error. But, When I compile the code at command line I am getting the following message. </p>
  
  <blockquote>
  <pre><code>Whoa.java:2: error: modifier static not allowed here
      public static void doStuff() {
                         ^
  </code></pre>
  </blockquote>