Which of the following is used by a client to establish a socket connection with the server?

Question:

Which of the following is used by a client to establish a socket connection with the server?

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

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

(c) Socket s = new Socket(ServerName, port);

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

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

Step by Step Answer:

Related Book For  answer-question
Question Posted: