Self-Review Exercises

24.1Fill in the blanks in each of the following statements:
  1. Exception occurs when an input/output error occurs when closing a socket.

  2. Exception occurs when a host name indicated by a client cannot be resolved to an address.

  3. If a DatagramSocket constructor fails to set up a DatagramSocket properly, an exception of type

  4. Many of Java’s networking classes are contained in package ________.

  5. Class ________ binds the application to a port for datagram transmission.

  6. An object of class ________ contains an IP address.

  7. The two types of sockets we discussed in this chapter are ________ and ________.

  8. The acronym URL stands for ________.

  9. The acronym URI stands for ________.

  10. The key protocol that forms the basis of the World Wide Web is ________. ...

Get Java™ How to Program, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.