Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does FIFO stand for?
Think about the order of service in a queue.
Name one method used by the Queue interface.
This method inserts an item into the queue.
What does the add() method do in the Queue interface?
Think about the action of adding something to a container.
True or False: A Deque allows access only from the front.
Think about its name: Double-ended Queue.
Create a Java implementation of a simple task scheduler using a PriorityQueue that processes tasks according to their priority.
Think about how to structure your tasks to include priority levels.
Explain how you could implement a history feature in a web browser using a Deque.
Consider how you would access both the most recent and the oldest URLs.
5 more questions in this section. Enroll free to practise them all.
Enroll free