The map collection has a ‘get’ operation. Why doesn’t the set collection have a ‘get’ operation?
What will be an ideal response?
There is no purpose to a ‘get’ operation on a set. A set has a contains operation, which can be used to
determine if the set contains a particular object. If contains returns true, then the object that was passed as an argument to
contains is the same as the object that is in the set.
Computer Science & Information Technology
You might also like to view...
Sum, Avg, and Max are examples of ________ functions that are used to evaluate entire columns of data
A) compound B) aggregate C) number D) summary
Computer Science & Information Technology
Which of the following answers does not complete the sentence correctly? An anonymous inner class .
a. is frequently used for GUI event handling b. is non-static c. does not need a handle to its outer class to access its methods and variables d. cannot be declared private
Computer Science & Information Technology