Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is an ArrayList?
Think about how it handles capacity and elements.
Describe when you would prefer a LinkedList over an ArrayList.
Consider ease of insertion versus retrieval.
What is the main advantage of using an ArrayList?
Think about how you access elements by index.
Is a Vector synchronized?
Consider multi-threading scenarios.
Design a Java application that demonstrates the use of both ArrayList and LinkedList. Show the impact of different data operation times.
Use System.currentTimeMillis() to measure time.
Create a simulation of a Stack to manage a series of function calls in a recursive situation. Detail how each call is pushed and popped.
Demonstrate push on function enter and pop on return.
6 more questions in this section. Enroll free to practise them all.
Enroll free