Network Programming Question:
Download Questions PDF

What are the two important TCP Socket classes?

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.

Download Network Programming Interview Questions And Answers PDF

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?