Java Socket isBound() methodThe isBound () method of Java Socket class returns a Boolean value representing the binding state of the socket. This method would continue to return 'true' for a closed socket, if it was bound before being closed. SyntaxParameterNA ReturnThe isBound () method would return a Boolean value 'true' if the socket was successfully bound to an address. Example 1Test it NowOutput: The Socket is bounded: true Example 2Test it NowOutput: The Socket is bounded: false Example 3Test it NowOutput: The Socket is bounded: true Next TopicJava Socket Class |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India