Answers to Self-Review Exercises

24.1
  1. IOException.

  2. UnknownHostException.

  3. SocketException.

  4. java.net

  5. DatagramSocket.

  6. InetAddress.

  7. stream sockets, datagram sockets.

  8. Uniform Resource Locator.

  9. Uniform Resource Identifier.

  10. HTTP.

  11. showDocument.

  12. InetAddress.

  13. MalformedURLException.

24.2
  1. False; UDP is a connectionless protocol and TCP is a connection-oriented protocol.

  2. True.

  3. True.

  4. False; packets can be lost, arrive out of order or be duplicated.

  5. False; most browsers prevent applets from doing file processing on the client machine.

  6. True.

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.