<< Chapter < Page Chapter >> Page >
This module is one in a collection of modules designed for teaching INEW 2338 Advanced Java (Web) at Austin Community College in Austin, TX. This module contains review questions and answers keyed to the module titled Java4660: Sockets in the Network Programming sub-collection.

Table of contents

Preface

This module is one in a collection of modules designed for teaching INEW 2338 Advanced Java (Web) at Austin Community College in Austin, TX.

This module contains review questions and answers keyed to the module titled Java4660: Sockets in the Network Programming sub-collection.

Once you study that module, you should be able to answer the review questions in this module.

The questions and the answers in this module are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.

Questions

Question 1

True or False?

Sockets in Java come in at least three varieties that are implemented by the following Java classes

  • Connector
  • DatagramConnector
  • ServerConnector

Go to answer 1

Question 2

True or False?

The Socket and DatagramSocket classes represent TCP and UDP communications respectively.

Go to answer 2

Question 3

True or False?

Generally, the ServerSocket class is used to implement both clients and servers, while the Socket and DatagramSocket classes are only used to implement servers

Go to answer 3

Question 4

True or False?

Socket programming provides a low-level mechanism by which you can connect two computers for the exchange of data.

Go to answer 4

Question 5

True or False?

Socket programming makes it possible for you to cause data to flow in a full-duplex mode between a client and a server . This data flow can be viewed in almost exactly the same way that we view data flow to and froma disk: as a stream of bytes.

Go to answer 5

What is the meaning of the following two images?

These images were inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.

Spacer image of a rabbit and a penguin.

This image was also inserted for the purpose of inserting space between the questions and the answers.

Spacer image of a penguin and some houses.

Answers

Answer 5

True.

Go back to Question 5

Answer 4

True.

Go back to Question 4

Answer 3

False. Generally, the Socket and DatagramSocket classes are used to implement both clients and servers, while the ServerSocket class is only used to implement servers

Go back to Question 3

Answer 2

True.

Go back to Question 2

Answer 1

False. Sockets in Java come in at least three varieties that are implemented by the following Java classes

  • Socket
  • DatagramSocket
  • ServerSocket

Go back to Question 1

Miscellaneous

This section contains a variety of miscellaneous information.

Housekeeping material
  • Module name: Java4660r-Review
  • File: Java4660r.htm
  • Published: 03/08/14
  • Revised 12/26/14
Disclaimers:

Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.

I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.

In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.

Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.

-end-

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?

Ask