This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Poll removes the object from the Queue ,where as peek() simple retrives the object and does not remove it. Natural ordering is ordering in a natural way. For eg in String it would be Alphabetical order In Numbers it would be Increasing order ...
Check out the api for further details.
The future belongs to those who believe in the beauty of their dreams.Dream BIG!