Examveda

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

Answer: Option C


This Question Belongs to Java Program >> Java Server And Servlet

Join The Discussion

Related Questions on Java Server and Servlet