InterviewSolution
| 1. |
How Many Basic Interfaces Of Java Collections Framework? |
|
Answer» 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:
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: |
|