title: avoid implementation of a method which is there in interface - java
body: <p>I have a interface like the below :</p>
  
  <pre><code>public interface a {
      public void m1();
      public void m2();
      public void m3();
  }
  
  public class A implements a {
      public void m3() {
          // implementation code     
      }
  }
  </code></pre>
  
  <p>I want to avoid implementation for the rest of the method. one way is to have all the methods without implementing in the class that tries to implement <code>interface</code>.</p>
  
  <p>How do I avoid this. Example code would help me understand better :)</p>