title: What is the difference between static and default methods in a Java interface?
body: <p>I was learning through interfaces when I noticed that you can now define static and default methods in an interface. </p>
  
  <pre><code>public interface interfacesample2 {
      public static void method() {
          System.out.println("hello world");
      }
  
      public default void menthod3() {
          System.out.println("default print");
      }
  }
  </code></pre>
  
  <p>Kindly explain the difference of the two and also if there's an example of when we would use this would be nice. A little confused on Interfaces.</p>