MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Computer Networks
Q
Which methods are commonly used in Server Socket class?
AA. Public output stream get output stream ()
BB. Public socket accept ()
CC. Public synchronized void close ()
DD. Public void connect ()
Correct Answer:
B. B. 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.