The ________ Interface extends Collection and declares the behavior of containers
- Iterable
- List
- Map
- Queue
The List interface extends the Collection interface in Java. It is used to represent ordered collections of elements, allowing duplicates and providing various methods to manipulate the list. The other options do not extend Collection.
Loading...
Related Quiz
- What is the role of the JavaFX Application Thread?
- Which access modifier allows a member to be accessed from within its own class only?
- Which of the following stream operations is a terminal operation?
- The primitive data type boolean in Java can have the values ________ or ________.
- Consider a scenario where you are designing a graphics system that includes different types of shapes (e.g., Circle, Rectangle). How would you decide between using an abstract class and an interface for defining common methods?