How Many Basic Interfaces Of Java Collections Framework?

devquora
devquora

Posted On: Feb 22, 2018

 

There are four main basic interfaces of Java Collections Framework:
  • Collection: The collection defines is the root of the collection hierarchy. A collection provides a group of different objects called its element.
  • Set: Set is a collection which cannot provide duplicate elements. Set interface models the mathematical set abstraction and it is used for a deck of cards.
  • List: A list provides ordered and collection can obtain duplicate elements. So, you can easily find any element from its indexes.
  • Map: A map cannot obtain duplicate keys. Each key can map to at most one value.

The some different type’s interfaces are:

  • Queue
  • Dequeue
  • Iterator
  • SortedSet
  • SortedMap
  • ListIterator

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Java Play Interview Questions

    What Is JAVA Play Framework?

    Play Framework makes it easy to build scalable, fast and real-time web applications with Java and Scala. In other words..

    Java Play Interview Questions

    What Do You Mean By The Java Collection Framework?

    Collections are utilized in various programming languages and basic release contained some classes for collections such..

    Java Play Interview Questions

    What Are The Advantages Of Collections Framework?

    Some of the advantages of collections framework are: The reduce development effort by using core collection classes rat..