Java ObjectInputStream readLine() MethodThe readLine() method of ObjectInputStream class reads a line that has been terminated by a \n, \r, \r\n or EOF. SyntaxParameterNo parameter is passed. ReturnsA String copy of the line. ThrowsIOException - If other I/O error has occurred. Example 1Output: JavaTpoint provide tutorial for all language Example 2Output: JavaTpoint provide tutorial for all language
Next TopicJava ObjectInputStream
|