Queue vs Dequeue in java : <p>What is the difference between them? I know that </p>

<p>A queue is designed to have elements inserted at the end of the queue, and elements removed from the beginning of the queue.
Where as Dequeue represents a queue where you can insert and remove elements from both ends of the queue. </p>

<p>But which is more efficient?</p>

<p>Plus what's the difference between them two? cause i  have a bit of knowledge about them, what i said above, but i would like to know more about them. It will be appreciated.</p>
