Which methods are commonly used in Server Socket class?

Phạm Quyết

New member
Which methods are commonly used in Server Socket class?
A. Public Output Stream get Output Stream ()
B. Public Socket accept ()
C. Public synchronized void close ()
D. Public void connect ()
 
Answer: b
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.
 

Tìm kiếm

Back
Top