Interview Questions

What are the two important TCP Socket classes?

Networking Programming Interview Questions and Answers


(Continued from previous question...)

10. What are the two important TCP Socket classes?

Socket and ServerSocket. ServerSocket is used for normal two-way socket communication. Socket class allows us to read and write through the sockets. getInputStream() and getOutputStream() are the two methods available in Socket class.

(Continued on next question...)

Other Interview Questions