Javatpoint Logo
Javatpoint Logo

Java ServerSocket isbound() method

The isBound() method of Java ServerSocket class returns the binding state of the ServerSocket.

Syntax

Parameter

NA

Return

The isBound() method returns a Boolean value 'true' if the ServerSocket successfully bound to an address.

Example 1

Output:

The server socket is bounded: true
Local Socket Address: localhost/127.0.0.1:1085

Example 2

Output:

The server socket is bounded: false
Local Socket Address: null
Next TopicJava ServerSocket





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