1.

Which of these standard collection classes implements a dynamic array?(a) AbstractList(b) LinkedList(c) ArrayList(d) AbstractSetI got this question during an interview for a job.My enquiry is from Java.util in division java.util – The Collections Framework of Java

Answer» CORRECT answer is (c) ArrayList

Explanation: ArrayList class IMPLEMENTS a dynamic array by EXTENDING ABSTRACTLIST class.


Discussion

No Comment Found

Related InterviewSolutions