adplus-dvertising
frame-decoration

Question

Which of these standard collection classes implements a dynamic array?

a.

AbstractList

b.

LinkedList

c.

ArrayList

d.

AbstractSet

Posted under Java Programming

Answer: (c).ArrayList

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these standard collection classes implements a dynamic array?

Similar Questions

Discover Related MCQs

Q. Which of these class can generate an array which can increase and decrease in size automatically?

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

Q. Which of these method of ArrayList class is used to obtain present size of an object?

Q. Which of these methods can be used to obtain a static array from an ArrayList object?

Q. Which of these method is used to reduce the capacity of an ArrayList object?

Q. Map implements collection interface?

Q. Which of the below does not implement Map interface?

Q. What is the premise of equality for IdentityHashMap?

Q. What happens if we put a key object in a HashMap which exists?

Q. While finding the correct location for saving key value pair, how many times the key is hashed?

Q. Is hashmap an ordered collection.

Q. If two threads access the same hashmap at the same time, what would happen?

Q. How to externally synchronize hashmap?

Q. If large number of items are stored in hash bucket, what happens to the internal structure?

Q. How can we remove an object from ArrayList?

Q. How to remove duplicates from List?

Q. How to sort elements of ArrayList?

Q. When two threads access the same ArrayList object what is the outcome of the program?

Q. How is Arrays.asList() different than the standard way of initialising List?

Q. What is the difference between length() and size() of ArrayList?