Java Networking Question and Answers

13. What are the advantages of Java Sockets?
 
  • Sockets are flexible and sufficient.
  • Efficient socket based programming can be easily implemented for general communications. It cause low network traffic.
 
Your Name Your Email-ID
Your Answer
14. What is the difference between URL instance and URL connection instance?
  A URL instance represents the location of a resource, and a URL connection instance represents a link for assessing or communicating with the resource at the location.
 
Your Name Your Email-ID
Your Answer
15. What are the disadvantages of Java Sockets?
 
  • Socket based communication allows only to send packets of raw data between applications.
  • Both the client side and server side have to provide mechanisms to make the data useful in any way.
 
Your Name Your Email-ID
Your Answer
16. Which class represents the sockets that both the client and server use to communicate with each other?
  java.net.socket
 
Your Name Your Email-ID
Your Answer
1234 Page 4 of 4