Java ObjectInputStream readLong() MethodThe readLong() method of ObjectInputStream class is used to read a 64 bit float. SyntaxParameterNo parameter is passed. Returnsthe 64-bit Long read. ThrowsEOFException - If the end of file is reached. IOException - If other I/O error has occurred. Example 1Output: 1 2 6 6 7 3 Example 2Output: 21 22 23 45 67 66
Next TopicJava ObjectInputStream
|