Hi,
is JVM pays any role to serialize the
java object.
one thing i know it marks up the object using marker interface serilizable.
one more thing if we don't implement serilizable interface then will get error:
java.io.NotSerializableException: PersonDetails
means it is mandatory to implement that interface.