title: cannot subclass the final class Subject Interface
body: <pre><code>import javax.security.auth.Subject;
  
  abstract class Department extends Subject{
      String name;
  
  
  }
  </code></pre>
  
  <p>I have this piece of code. Sadly this throws the following error: <code>The type Department cannot subclass the final class Subject</code></p>
  
  <p>I was reading the documentation: <a href="https://docs.oracle.com/javase/7/docs/api/javax/security/auth/Subject.html" rel="nofollow noreferrer">https://docs.oracle.com/javase/7/docs/api/javax/security/auth/Subject.html</a> but there is nothing much on how to use it(a specific use case).</p>
  
  <p>Does anyone know how you can use Subject on an abstract Class (it has to be extended by an abstract class) ?</p>
  
  <p>Edit: <a href="https://i.stack.imgur.com/QBdRa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QBdRa.png" alt="enter image description here"></a></p>
  
  <p>Edit 2: Error Using Implements:</p>
  
  <pre><code>The type Subject cannot be a superinterface of Department; a superinterface must be an interface
  </code></pre>