1.

Set has contains(Object o) method.(a) True(b) FalseThe 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

Answer»

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.



Discussion

No Comment Found

Related InterviewSolutions