If the class represents a model object that can be passed through n / w, it must be serializable. Is this reasoning correct?
This reasoning is somewhat correct. If you are creating a public API where compatibility is important, you might want to serialize classes that might need to be serialized one day. However, if you are creating a private application, classes should only be serialized when necessary. One of the reasons (among several) to try to avoid implementation Serializableis that it introduces the need to maintain and protect the newly added "interface" to your serializable class: its representation in byte code.
, Java Java API , ? Serilizable, , .
, Java API Serializable, , - , , Serializable, Serializable, , java.lang.Object Serializable, java , . : -.