Which of the following statements is used by the server to listen for a connection request from

Question:

Which of the following statements is used by the server to listen for a connection request from a client?

(a) Socket s = serverSocket.listen();

(b) Socket s = serverSocket.wait();

(c) Socket s = serverSocket.getSocket();

(d) Socket s = serverSocket.accept();

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Advanced Java Programming

ISBN: 9780199455508

1st Edition

Authors: Uttam Kumar Roy

Question Posted: