What is the penalty for unnecessarily implementing Serializable?
问题 I need to develop a Java RMI application for my distributed systems class. During the lecture, the professor was stressing to only let classes implement Serializable that have to be passed by value over the network. This implies that there is some downside or penalty to letting too many classes implement Serializable . Classes that don't require to be sent over the network. I don't see how there could be any downside since the serialization/deserialization would never happen if you never