Javatpoint Logo
Javatpoint Logo

Java Objectinputstream skipBytes() Method

The skipBytes() method of ObjectInputStream class is used to skip the bytes by the numbers passed as the parameter.

Syntax

Parameter

len as the number of bytes to be skipped

Returns

The actual number of bytes skipped.

Throws

IOException

Example 1

Output:

Tpoint
javaTpoint  provide

Example 2

Output:

ome to j





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA