Q. The client requests a connection to a server using which of the following statement? (Solved)

1. Socket s = new Socket(ServerName, port);

2. Socket s = serverSocket.accept();

3. Socket s = serverSocket.getSocket();

4. Socket s = new Socket(ServerName);

  • a. Socket s = new Socket(ServerName, port);
Subscribe Now

Get All Updates & News