title: Is it possible to make two Java interfaces mutually exclusive?
body: <p>I have two interfaces that should exclude each other:</p>
  
  <pre><code>interface Animal{}
  interface Cat extends Animal{}
  interface Bird extends Animal{}
  </code></pre>
  
  <p>How can I prevent the implementation of a class that implements both <code>Cat</code> and <code>Bird</code> interfaces?</p>
  
  <pre><code>class Impossible implements Cat, Bird{}
  </code></pre>