title: Making generic interface in java through generics
body: <p>I am using the below interface as shown below </p>
  
  <pre><code>public interface ZaestrorardRule {
  
      Map&lt;String, List&lt;MMTM&gt;&gt; exceute(String jobCode, String Plientlo) throws AaestroRardNetworkException;
  
  }
  </code></pre>
  
  <p>and then there is a class which implement it as shown below</p>
  
  <pre><code>public class AaestroRardBusinessRNFRuleImpl implements ZaestrorardRule {
  
      public Map&lt;String, List&lt;MMTM&gt;&gt; exceute(String jobCode, String Plientlo) throws AaestroRardNetworkException {
  
      }
  
  }
  </code></pre>
  
  <p>Now lets say I am working on some other functionality apart from ZaestrorardRule shown above, which has the same functionality like ZaestrorardRule then I have to create a separate interface as shown below</p>
  
  <pre><code>public interface WWaestrorardRule {
  
      Map&lt;String, List&lt;MMTM&gt;&gt; exceute(String jobCode, String Plientlo) throws AaestroRardNetworkException;
  
  }
  </code></pre>
  
  <p>My query is that can I use generic in interface so that there will be a single interface as the structure of the interface is fixed.</p>