What is a queue in Java?
A queue is a data structure that follows the First In First Out (FIFO) principle. The first element added is the first one to be removed.
Exactly! Queues are commonly used in scenarios like job scheduling or resource management where processing order matters.
Can you explain how enqueue and dequeue operations work in a queue?