Home » Java ObjectInputStream readUnsignedShort() Method with Examples

Java ObjectInputStream readUnsignedShort() Method with Examples

by Online Tutorials Library

Java Objectinputstream readUnsignedShort() Method

The readUnsignedShort() method of ObjectInputStream class reads an unsigned 16 bit short.

Syntax

Parameter

No parameter is passed.

Returns

The 16-bit short read.

Throws

IOException

Example 1

Output:

short value: 32767  

Example 2

Output:

readUnsignedShort() : 55676  

You may also like