Home » Java ObjectInputStream readUnsingedByte() Method with Examples

Java ObjectInputStream readUnsingedByte() Method with Examples

by Online Tutorials Library

Java ObjectInputStream readUnsingedByte() Method

The readUnsignedByte() method of ObjectInputStream class reads an unsigned 8 bit byte.

Syntax

Parameter

No parameter is passed.

Returns

The 8-bit byte read.

Throws

IOException

Example 1

Output:

byte value: 255  

Example 2

Output:

readUnsignedShort() : 124  

You may also like