Home » Java ObjectInputStream readLong() Method with Examples

Java ObjectInputStream readLong() Method with Examples

by Online Tutorials Library

Java ObjectInputStream readLong() Method

The readLong() method of ObjectInputStream class is used to read a 64 bit float.

Syntax

Parameter

No parameter is passed.

Returns

the 64-bit Long read.

Throws

EOFException – If the end of file is reached.

IOException – If other I/O error has occurred.

Example 1

Output:

1    2    6    6    7    3  

Example 2

Output:

21    22    23    45    67    66  

You may also like