title: Can't we just take RAM memory dump of object to be serialized?
body: <p>When we have to save an object in persistent storage or transfer across network, we serialize the object (In this case, the object should implement serializable interface). My question is why there is the restriction that the object class should implement serializable interface. Can't we serialize any random object by taking its memory dump as it is.</p>