Javatpoint Logo
Javatpoint Logo

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.

Syntax

Parameter

Obj: as the object to receive the validation callback.

prio: as controls the order of callbacks

Returns

Have void as return type.

Throws

NotActiveException

InvalidObjectException

Example 1

Output:

Using readFields() : Welcome to javaTpoint
Valiations : : : 
Welcome to javaTpoint

Example 2

Output:

JavaTpoint





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA