List three operations common to all collections. What does it mean if an operation is optional? What is the difference between Collections (plural) and Collection (singular)?
What will be an ideal response?
All collections support some form of addition and removal of elements, as well as a way to test for membership. Other common operations:
1. Add the elements of one collection to another collection.
2. Remove all the elements of one collection from another collection.
3. Retain only the elements of one collection that are present in another collection.
4. Determine if one collection contains all the elements in another collection.
An optional operation means that the implementing class must include these methods, but need not support them.
Collections (plural) is the name of a class (like the Math class), whereas Collection (singular) is the name of the interface implemented by a set of collection classes.
You might also like to view...
A __________is a facility that offers diagnosis, treatment, or care for patients in a variety of specialties
a. General acute care hospital b. Home health agency c. Hospice agency d. None of the above
A customer has an older application that ran fine on Windows XP but doesn't run correctly on Windows 7. What could a technician do?
A) Install Vista Home Basic. B) Install the application in compatibility mode. C) Update the Windows operating system by installing the latest updates and/or service pack. D) Install the latest antivirus software definitions, but disable any firewall software while installing the older application. Then after the application installation, reactivate the firewall.