GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "collection" Watch "collection" New topic


meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305


Does Deque is different than Queue ?


My one regret in life is that I am not someone else.
- Woody Allen
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 186
Yes, Dequeue extends Queue, adding the ability to add and remove elements at both ends (head and tail) as opposed to just the head.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: collection