Java Socket get00BInline() methodThe get00BInline() method of Java Socket class tests whether the S0_00BINLINE option is enabled or not. SyntaxParameterNA ReturnThe get00BInline() method returns a Boolean value 'true if the S0_00BINLINE is enabled else it returns false. ThrowsSocketException - if an error is there in the protocol, such as a TCP error. Example 1Test it NowOutput: S0_00BINLINE is enabled: true Example 2Test it NowOutput: S0_00BINLINE is enabled: false Example 3Test it NowOutput: Exception in thread "main" java.net.SocketException: Socket is closed at java.net.Socket.set00BInline(Socket.java:1097) at com.javaTpoint.JavaSocketGet00BInlineExample2.main(JavaSocketGet00BInlineExample2.java:13) 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