collection framework hirarchy?

Answer Posted / yadaiah

Collection is the root interface for all the hierarchy (except Map).
Set interface unique feature is that it does not accept duplicate elements. That is, no two elements will be the same.
SortedSet interface is derived from Set interface and adds one more feature that the elements are arranged in sorted order by default.
List interface permits duplicate elements.
Queue interface holds elements and returns in FIFO order.
Map adds the elements in key/value pairs. Duplicate keys are not allowed, but duplicate values are allowed. One key can map one value only.
SortedMap interface is a particular case of Map. Keys are sorted by default.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Core classes of Struts Framework?

587


How to build struts application in eclipse?

526


Explain about the library tag?

597


How is forward action used for integration?

570


What do you mean by actionservlet?

547






Why are springs better than struts?

606


how to debug struts project in netbean ?

1922


What is declarative exception handling in struts?

556


What is the difference between empty default namespace and root namespace?

558


Do we need to pay the struts if being used in commercial purpose?

550


What are the two types of validations supported by validator framework?

580


What is the purpose of form-beans tag in struct-config.xml?

551


What is the difference between validation.xml and validator-rules.xml files in struts?

513


What is the role of a handler in mvc based applications?

749


Can you explain value stack?

538