Java Networking - Sockets and RMI Question:

Download Job Interview Questions and Answers PDF

What are the two important TCP Socket classes?

Java Networking - Sockets and RMI Interview Question
Java Networking - Sockets and RMI 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.

Download Java Networking - Sockets and RMI Interview Questions And Answers PDF

Previous QuestionNext Question
What information is needed to create a TCP Socket?When MalformedURLException and UnknownHostException throws?