<< Chapter < Page | Chapter >> Page > |
Revised: Tue Apr 05 14:35:53 CDT 2016
This page is included in the following Books:
This module is one in a collection of modules on Java Collections designed for teaching ITSE2321 - Object-Oriented Programming (Java) at Austin Community College in Austin, TX.
This module contains review questions and answers keyed to the module titled Java4020: What is a 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.
True or False? Collection is the name of a Java interface. It is also the term given to an object that groups multiple elements into asingle unit. (A collection of rabbits for example.)
What is a collection insofar as Java programming is concerned?
True or False? Collection is the name of a Java interface. This interface is an integral part of the Java Collections Framework .
True or False? Collection is one of three top-level interfaces in the framework. The other top-level interfaces in the framework are named Map and ArrayList .
True or False? The usage of the term collection in the Collection Framework usually refers to the container and not tothe contents of the container. In the framework, the contents are usually referred to as elements .
True or False? The collections in the framework always store objects as opposed to the object's references.
True or False? Values of all types, including primitive values, can be stored in a collection.
True or False? Object's references are always stored in a collection as type Collection .
True or False? When a method receives an incoming parameter as type Collection, the method can call (on the reference to the Collection object) any of the methods declared in the Collection interface, with confidence that the behavior of the method will be appropriate for the actual type of Collection object involved. (That is polymorphic behavior.)
True or False? The Iterator interface is one of the core collection interfaces.
True or False? The core collection interfaces are shown below, with indentation showing the superinterface-subinterface relationships among the interfaces.
True or False? Each of the following classes provides an implementation of one of the interfaces that make up the Java Collections Framework. (See the Java documentation.)
Notification Switch
Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?