I've read that the "Serialization is the conversion of an object to a series of bytes."
But, this definition is true for every Java object since all Java objects are represented as bytes in memory anyways.
What is the purpose of implementing "Serializable" interface if all java objects can be represented as bytes anyways?
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"?
EDIT: I found that this question is a duplicate of previous question: Why Java needs Serializable interface?
I also found a good documentation: http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/faq.html#whyserial
Thanks for the answers!