Untitled Document

Subscribe here to get updates on new Videos


10. 9 key interfaces of Collection framework vi Queue ?






It is child interface of Collection.
If we want to represent a group of individual objects prior to processing then we should go for Queue.


Before sending a mail all mail id’s we have to store somewhere and in which order we saved in the same order mail’s should be delivered (First in First Out) for this requirement Queue concept is the best choice.
* All the above interfaces ( Collection,List,Set,SortedSet,NavigableSet and Queue) meant for representing a group of individual objects.
* If we want to represent a group of objects as key value pairs then we should go for Map Interface.