Java ObjectInputStream readUTF() MethodThe readUTF() method of ObjectInputStream class is used to read a String in UTF(Uniform Text Format) format. It returns the String which is read from objectinputstream in UTF format. SyntaxParameterNA ReturnsThe String. ThrowsIOException UTFDataFormatException Example 1Output: javaTpoint welcome to javatpoint Example 2Output: Use of readUTF() : Welcome to javaTpoint
Next TopicJava ObjectInputStream
|