Javatpoint Logo
Javatpoint Logo

Java ObjectInputStream available() Method

The available() method of ObjectInputStream class returns the number of bytes that can be read without blocking.

Syntax

Parameter

NA

Returns

The number of available bytes.

Throws

IOException

Example 1

Output:

Hello
0
javaTpoint

Example 2

Output:

Hello
javaTpoint
0





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