Elements in Queue will be added from the rear end while removed from the front. it orders the elements in First In First Out manner. Queue Interface: in Java follows a FIFO approach i.e.The Set interface is implemented by various classes such as HashSet, TreeSetand LinkedHashSet. It is majorly used as a mathematical set abstraction model. Since it doesn’t define an order for the elements, the index-based search is not supported. Set Interface: refers to a collection class that cannot contain duplicate elements.The List interface is implemented by various classes such as ArrayList, LinkedList, Vector, etc. It supports the index-based search, but elements can be easily inserted irrespective of the position. List Interface: is an extended form of an array that contains ordered elements and may include duplicates. ![]() Public interface Collectionextends Iterable
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |