Explore topic-wise MCQs in Java.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of these method can be used to increase the capacity of ArrayList object manually?

A. Capacity()
B. increaseCapacity()
C. increasecapacity()
D. ensureCapacity()
Answer» E.
2.

Which of these standard collection classes implements a dynamic array?

A. AbstractList
B. LinkedList
C. ArrayList
D. AbstractSet
Answer» D. AbstractSet