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) ;
Correct Answer:
Verified
Q3: Which of the following protocol follows connection
Q4: Which of the following statement is NOT
Q5: Which of the following statement is TRUE?
A)With
Q6: Which of the following method call is
Q7: The server listens for a connection request
Q9: To connect to a server running on
Q10: In the socket programming, for an IP
Q11: To create an InputStream on a socket,
Q12: Which of the following protocols is/are for
Q13: Which of these is a protocol for
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents