Google News
logo
Networking - Quiz(MCQ)
Which methods are commonly used in Server Socket class?
A)
Public void connect ()
B)
Public synchronized void close ()
C)
Public Socket accept ()
D)
Public Output Stream get Output Stream ()

Correct Answer :   Public Socket accept ()


Explanation : The Public socket accept () method is used by the ServerSocket class to accept the connection request of exactly one client at a time. The client requests by initializing the socket object with the servers IP address.

Advertisement