Monday, February 4, 2019

Why doesn't the Object already implement Serializable? Members that we wouldn't want to be serializable may be made as transient. Why prevent the default Serializability?

1. Serializable is marker interface, which is empty, but when a class is marked Serializable that means its objects are Serializable.

No comments:

Post a Comment