title: Making Child classes as Non Serializable in java
body: <p>I have a class which implements Serializable. Now I extends this class and I want this extended class to be non Serializable. So how to do it?</p>
  
  <p>For example. I have </p>
  
  <pre><code>class A implements Serializable.
  </code></pre>
  
  <p>and I have</p>
  
  <pre><code>class B extends A.
  </code></pre>
  
  <p>But I want class B to be Non Serializable.</p>