title: Static methods added in interfaces in java 1.8
body: <p>As we know that in java 1.8 static methods are allowed in interfaces , I have seen some answers like <a href="https://stackoverflow.com/questions/25549208/static-methods-defined-in-interface-from-jdk-1-8-why-did-they-need-to-do-so">static methods defined in interface from jdk 1 8 why did they need to do so</a><br>
  but  I am not satisfied. <br/> Furthermore I think it may cause problems like :</p>
  
  <pre><code> public interface MyInterface{
        public static void myMethod();
      }
  
    class MyClass{
      MyInterface.myMethod();  // since myMethod is static but a huge error is waiting for us here ?
    }
  </code></pre>
  
  <p>But I still think there is a way out of this since this is added <strong>by professionals</strong> , so can anyone please explain <strong>how oracle solves</strong> this issue and what is the need to add this ? <br/>
  Thank you in adavance.</p>
  
  <p><hr/>
  I have not used java 1.8 so I never knew that static methods in java <strong>needs to be defined not just declared</strong> , I always thought of the Interfaces as a <strong>Pure Abstract Class</strong> I think that's why the idea of defining a method seemed strange to me . Thank you for your help ! .</p>