What if a class is implementing serializable interface, but there's no writeObject/readObject
method implementation anywhere in the codebase?
Will the default methods defaultWriteObject/defaultReadObject
do the serialization or not?
Is only marking the class with implements Serializable
enough to serialize a class?
If yes, then what is getting serialized and where is the state of object getting persisted?