Java Socket isClosed () methodThe isClosed () method of Java Socket class returns the closed state of the socket. SyntaxParameterNA ReturnThe isClosed () method would return a Boolean value 'true' if the socket has been closed successfully. Example 1Test it NowOutput: The socket is closed: true Example 2Test it NowOutput: The socket is closed: false 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