1.

Which of these classes implements Set interface?(a) ArrayList(b) HashSet(c) LinkedList(d) DynamicListI had been asked this question in an online quiz.Query is from Java.util in section java.util – The Collections Framework of Java

Answer»

Correct option is (b) HashSet

The EXPLANATION: HashSet and TreeSet IMPLEMENTS Set INTERFACE where as LinkedList and ARRAYLIST implements List interface.



Discussion

No Comment Found

Related InterviewSolutions