Set has contains(Object o) method.
(a) True
(b) False
The question was posed to me by my school principal while I was bunking the class.
My question comes from Data Structures-Set in portion java.util – The Collections Framework of Java
(a) True
(b) False
The question was posed to me by my school principal while I was bunking the class.
My question comes from Data Structures-Set in portion java.util – The Collections Framework of Java
Correct choice is (a) True
Easy explanation: Set has contains(Object o) method instead of get(Object o) method as get is needed for comparing object and getting corresponding value.