Java ServerSocket isbound() methodThe isBound() method of Java ServerSocket class returns the binding state of the ServerSocket. SyntaxParameterNA ReturnThe isBound() method returns a Boolean value 'true' if the ServerSocket successfully bound to an address. Example 1Output: The server socket is bounded: true Local Socket Address: localhost/127.0.0.1:1085 Example 2Output: The server socket is bounded: false Local Socket Address: null
Next TopicJava ServerSocket
|