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 is the difference between filters and interceptors ?

495


What is the differences between struts1 and struts2?

526


What is spring hibernate and struts in java?

486


What is controller in struts2?

496


What are the classes used in struts?

624






Who wrote struts?

546


What are the components of struts framework?

579


What are the loop holes of struts?

558


Mark the differences between html tags and strut specific html tags.

585


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

554


How to upload struts file?

602


What is the difference between struts and spring? Explain

483


Which tag is used to declare constants in struts xml?

470


How is a lookup dispatch action created?

530


Are the struts tags xhtml compliant ?

538