collection framework hirarchy?
Answers were Sorted based on User's Feedback
Answer / krishna kumar g.
Collection(I)
/ \
List(I) Set(I)
/ \ / \ \
ArrayList Vector HashSet LinkedHashSet SOrtedSet(I)
|
TreeSet
Map(I)
/ | \ \
Hastable HashMap LinkedHashMap SortedMap(I)
| Is This Answer Correct ? | 30 Yes | 2 No |
Answer / laxmi
Ans:
Collection Map
/ \ |
List Set SortedMap
|
SortedSet
| Is This Answer Correct ? | 20 Yes | 3 No |
Answer / royal
It is introduced in java 2 before to that there are five legacy classes and one legacy interface
Vector
HashTable
Properties legacy classes Eenumeration legacy interface
Dictionary
Stack
There are some problem in above listed legacy classes to avoid these problem Sun has introduced collection framework in Java 2.
In the collection frame work there are the three different category:--------
List :----- collection of object with duplicate.
Set :----- collection of object without duplicate.
Map :--- collection of key value pairs
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
Answer / ram
plz any one use and implement encapsulation,polymorphism,inheritance and abstraction in a single program
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we integrate log4j in Struts2 application?
How can we group related actions in one group in Struts?
How can you create your custom interceptor in struts 2?
How does one create an action in struts 2?
What are different Struts2 tags? How can we use them?
diffrence between dispatch action and lookupdispatch action write simple web appliction (insert records in database)
8 Answers Athena Health Care, Symphony, TCS,
How tag libraries are defined in Struts?
What is the purpose of @keyproperty annotation annotation?
What are different ways to create Action classes in Struts2?
Explain the difference between dispatchaction and lookupdispatchaction in struts?
How many instances of servlet usually run in a struts application ?
What is the purpose of @element annotation annotation?