in Education by
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

1 Answer

0 votes
by
 
Best answer
The correct answer is (c) IOException is thrown when opening the socket The best I can explain: public ServerSocket() creates an unbound server socket. It throws IOException if specified port is busy when opening the socket.

Related questions

0 votes
0 votes
    What does bind() method of ServerSocket offer? (a) binds the serversocket to a specific address (IP Address and ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What happens if IP Address of host cannot be determined? (a) The system exit with no message (b) ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What happens when the value of variable change? (a) changed value pop on the screen (b) variable changes are ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the below is not a javascript framework for UI? (a) Vaadin (b) AngularJS (c) KendoUI (d) ... Technologies & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What is debugging an application which runs on another java virtual machine on another machine? (a) virtual ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which mode allows us to run program interactively while watching source code and variables during execution? (a) ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    How can we move from one desired step to another step? (a) breakpoints (b) System.out.println (c) logger. ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which part stores the program arguments and startup parameters? (a) debug configuration (b) run configuration (c) ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    How to deep dive into the execution of a method from a method call? (a) F3 (b) F5 (c) F7 (d) ... Server Technologies & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which key helps to step out of the caller of currently executed method? (a) F3 (b) F5 (c) F7 (d) ... Technologies & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which view allows us to delete and deactivate breakpoints and watchpoints? (a) breakpoint view (b) variable view ( ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which perspective is used to run a program in debug view? (a) java perspective (b) eclipse perspective (c) debug ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Servlet are used to program which component in a web application? (a) client (b) server (c) tomcat (d) ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which component can be used for sending messages from one application to another? (a) server (b) client (c) mq ... & Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
...