Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What type of elements can a List contain?
Think about how a List is defined in Java.
Which implementation is best for frequent insertions?
Consider the structure of different List implementations.
Which of the following allows duplicate elements?
Think about the characteristics of collections.
True or False: A Vector and ArrayList have the same performance in multi-threaded environments.
Recall how synchronization affects performance.
Design a program that uses an ArrayList to store student names. Enhance the program to allow duplicate names, list the names, and remove a specific name when asked.
Use Scanner for input and ensure you handle duplicates properly.
Create a scenario within a Java application that requires the use of a Stack for undo operations, detailing how the Stack's LIFO behavior supports this.
Consider how applications like text editors utilize this concept.
5 more questions in this section. Enroll free to practise them all.
Enroll free