Q. The server listens for a connection request from a client using which of the following statement?

  • (A) Socket s = new Socket(ServerName);
  • (B) Socket s = serverSocket.getSocket()
  • (C) Socket s = serverSocket.accept()
  • (D) Socket s = new Socket(ServerName, port);
πŸ’¬ Discuss
βœ… Correct Answer: (C) Socket s = serverSocket.accept()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
230
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
85%
Success Rate