Java ObjectInputStream readChar() MethodThe readChar() method of ObjectInputStream class is used to read a 16-bit (2 byte) char. SyntaxParameterNo parameter is passed. ReturnsThe 16-bit char read. ThrowsEOFException - If the end of file is reached. IOException - If other I/O error has occurred. Example 1Output: j a v a T p o i n t Example 2Output: j a v a T p o i n t
Next TopicJava ObjectInputStream
|