title: adding method implementation inside interface in java 8
body: <p>While writing interface in java 8 i noticed behavior that i was able to define method in interface without any compile time error.</p>
  
  <pre><code>public interface AdvanceMediaPlayer {
      public static void playVlc(String fileName) {
          System.out.println("play VLC");
      }
      public abstract void playMp4(String fileName);
  }
  </code></pre>
  
  <p>Please explain why is this happening. As far as I am aware we cant implement methods inside interfaces.</p>