Q.

The client requests a connection to a server 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» A. Socket s = new Socket(ServerName, port);
3k
0
Do you find this helpful?
25

View all MCQs in

Advanced JAVA

Discussion

No comments yet