Java ObjectInputStream registerValidation() Method
The registerValidation() method of ObjectInputStream class method registers an object to be validated before the graph is returned. While this method is similar to resolveObject these validations are called after the entire graph has been reconstituted.
Obj: as the object to receive the validation callback.
prio: as controls the order of callbacks
Have void as return type.
Using readFields() : Welcome to javaTpoint Valiations : : : Welcome to javaTpoint