Why is this class Serializable if readObject and writeObject are not implemented?