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

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(); 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();