What is a `Queue` in Java?
A `Queue` in Java allows both insertion and removal of elements from both ends, making it more like a `Deque`.
You're on the right track, but `Queue` typically operates on the FIFO principle, while `Deque` allows operations on both ends.
Can you describe a scenario where a `Deque` would be more appropriate than a `Queue`?