title: What is the purpose of "serializable" interface in Java when every object is serializable automatically?
body: <p>I've read that the "Serialization is the conversion of an object to a series of bytes."</p>
  
  <p>But, this definition is true for every Java object since all Java objects are represented as bytes in memory anyways.</p>
  
  <p>What is the purpose of implementing "Serializable" interface if all java objects can be represented as bytes anyways?</p>
  
  <p>My guess is that implementing "Serializable" interface acts as some flag (you don't even need to implement any methods), but doesn't it make more sense to have an interface called "NotSerializable"?</p>
  
  <p>EDIT:
  I found that this question is a duplicate of previous question:
  <a href="https://stackoverflow.com/questions/441196/why-java-needs-serializable-interface?rq=1">Why Java needs Serializable interface?</a></p>
  
  <p>I also found a good documentation:
  <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/faq.html#whyserial" rel="nofollow noreferrer">http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/faq.html#whyserial</a></p>
  
  <p>Thanks for the answers!</p>