Trusted by students across multiple disciplines!
What is the Collections API? - Answer: The Collections API is a set of classes and
interfaces that support operations on collections of objects.
What is the List interface? - Answer: The List interface will allow you to be able to work
with a list data type structure in which you can store an ordered collection of objects. It
can also have duplicate values
What is the arraylist? - Answer: A Class that implements the List Interface. It allows
duplicate values and is index-based. It is mutable in size, allowing us to add and
remove objects. It does maintain insertion order. It increments 50% of the current array
size if the number of elements exceeds ts capacity. Arraylist are not thread-safe.
What is a linkedlist? - Answer: A type of data structure that organizes data based on
nodes
What is a Vector? - Answer: A Class that implements the List Interface. It does the
same thing as an arraylist however, it is thread-safe. It increments by 100% meaning
doubles the array size if the total number of elements exceeds its capacity. It is slower
to iterate/traverse through as it is synchronized.
What is the Stack Class? - Answer: A stack is a data structure with elements of the
*SAME* type. Data elements of the *stack* data structure can only be accessed (stored
or retrieved) at one end of the stack in a Last In First Out (LIFO) manner. It is a class in
the Collections API.
What is the top of the Collections Hierarchy? - Answer: Collection as Iterable
technically sits right outside of the Collections API. Collection extends Iterable.
1
APPHIA - Crafted with Care and Precision for Academic Excellence.