178
Java ObjectInputStream enableResolveObject() Method
The enableResolveObject () method of ObjectInputStream is used to enable the stream to replace the objects which are read from the stream. This method is called for every object being deserialized for a true value passed.
Syntax
Parameter
enable: true for allowing the use of resolveObject for every object being deserialized
Returns
The previous setting before this method was invoked.
Throws
SecurityException
Example 1
Output:
welcome to TutorAspire enableresolveobject :false
Example 2
Output:
2.828125 0.0 2.84375 0.0 2.859375 0.0 3.1015625
Next TopicJava ObjectInputStream