Networking
- In CGI, process starts with each request and will initiate OS level process.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
A new process is started with each client request and that corresponds to initiate a heavy OS level process for each client request.
- Which class provides system independent server side implementation?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
ServerSocket is a java.net class which provides system independent implementation of server side socket connection.
- What happens if ServerSocket is not able to listen on the specified port?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
public ServerSocket() creates an unbound server socket.It throws IOException if specified port is busy when opening the socket.
- What does bind() method of ServerSocket offer?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
bind() binds the server socket to a specific address (IP Address and port). If address is null, the system will pick an ephemeral port and valid local address to bind socket.
- Which of the below are common network protocols?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Transmission Control Protocol(TCP) and User Datagram Protocol(UDP) are the two common network protocol. TCP/IP allows reliable communication between two applications. UDP is connection less protocol.