Java: What can and what can’t be serialized?
First of all, if you don’t plan to ever serialize an instance of your class, there is no need to even think about serializing it. Only implement what you need, and don’t try to make your class serializable just for the sake of it. If your object has a reference (transitive or direct) to any … Read more