Java ObjectInputStream enableResolveObject() MethodThe 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. SyntaxParameterenable: true for allowing the use of resolveObject for every object being deserialized ReturnsThe previous setting before this method was invoked. ThrowsSecurityException Example 1Output: welcome to javaTpoint enableresolveobject :false Example 2Output: 2.828125 0.0 2.84375 0.0 2.859375 0.0 3.1015625
Next TopicJava ObjectInputStream
|