1.

Which of these interface declares core method that all collections will have?(a) set(b) EventListner(c) Comparator(d) CollectionI got this question in an international level competition.I want to ask this question from Collections Interface in division java.util – The Collections Framework of Java

Answer»

Right answer is (d) Collection

To explain I would say: Collection INTERFACES defines CORE methods that all the COLLECTIONS like set, MAP, arrays etc will have.



Discussion

No Comment Found

Related InterviewSolutions