Saved Bookmarks
| 1. |
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» Correct option is (b) Public Socket accept () To explain I would say: 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. |
|