Network Programming Question:

What are the two important TCP Socket classes?

Network Programming Interview Question
Network Programming Interview Question

Answer:

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.


Previous QuestionNext Question
When MalformedURLException and UnknownHostException throws? Can you be bale to identify between Straight- through and Cross- over cable wiring? and in what case do you use Straight- through and Cross-over?