What happens if ServerSocket is not able to listen on the specified port?
(a) The system exits gracefully with appropriate message
(b) The system will wait till port is free
(c) IOException is thrown when opening the socket
(d) PortOccupiedException is thrown
The question was asked in an international level competition.
Query is from Client and Server in section Java Server Technologies & Servlet of Java
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)