Re: Tips: What is the magic Serializable interface does in Java?

Furthermore, serialization imposes an additional public interface on a
class, one which circumvents the usual protections of accessibility
(e.g., 'private'). This is a huge development and maintenance
responsibility on a class, as is maintaining serializability between
successive API versions. What a PITA that would be for a class that
would never need it.

Arne Vajhøj wrote:

Serializable does not have any methods, so there are no "private"
anything that becomes accessible.

That is neither true nor relevant. Serialization of a class makes the private
members of that class, whatever they may be, accessible through the
serialization / deserialization mechanism itself.