Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a Collection in Java?
Consider grouping items together.
Name one implementation of the List interface.
Think of a dynamic-sized collection.
What does a List in Java allow?
Think about sequences and repetitions.
True or False: A Set in Java can contain duplicate elements.
Consider the basic definition of a Set.
Given a list of integers, write a Java method that returns a Set of unique values. Discuss its advantages based on your understanding of Sets.
Consider using HashSet's add() method.
Create a generic method that reverses an array of any type. Show how generics improve the flexibility of your code.
Think about how the method should handle type parameters.
5 more questions in this section. Enroll free to practise them all.
Enroll free