What is a queue in Java?
A queue is a data structure that removes elements in a random order and allows for the addition of elements at any position.
Actually, in a queue, elements are always removed in the same order they are added (FIFO). You can't remove elements at random.
Can you explain the difference between a queue and a priority queue?