1.

What are the different interfaces are there in Collection framework?

Answer»
  • Interface java.lang.Iterable Iterable is the root interface of the COLLECTIONS API
    • Interface Collection
  • Interface List

List is a collection of unordered elements. It contains duplicate elements also.

  • Interface Set

Set is a collection of ORDERED elements. It doesn’t contain any duplicate elements.

  • Interface Queue

Queue interface available in java.util package and EXTENDS Collection interface

  • Interface Map
    • Interface SortedMap

Map is a collection of (key,value) PAIR.



Discussion

No Comment Found