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
What happens if ServerSocket is not able to listen on the specified port?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What happens if ServerSocket is not able to listen on the specified port?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!