3 Questions
Which package in Java contains the ArrayList class?
java.util
What is the initial capacity of an empty ArrayList constructed using the default constructor?
10
Which interface does the ArrayList class implement in Java?
List
Study Notes
ArrayList in Java
- The
ArrayList
class is contained in thejava.util
package. - An empty
ArrayList
constructed using the default constructor has an initial capacity of 10. - The
ArrayList
class implements theList
interface in Java.
Test your knowledge of Java ArrayList methods and functionality with this quiz. Covering constructors, adding elements, removing elements, and more, this quiz will help you brush up on your Java Collections Framework skills.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free