Q.

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

A. Socket s = new Socket(ServerName, port);
B. Socket s = serverSocket.accept()
C. Socket s = serverSocket.getSocket()
D. Socket s = new Socket(ServerName);
Answer» B. Socket s = serverSocket.accept()
847
0
Do you find this helpful?
1

View all MCQs in

Advanced JAVA

Discussion

No comments yet