Difference between treemap & sortedset
Answers were Sorted based on User's Feedback
Answer / amit kumar
1.Treemap is a class which has implemented SortedMap
interface where as Sortedset is an interface which has been
implemented by Treeset class.
2. Treemap can contain the duplicate value but the Treeset
which has implemented Sortedset can not hold duplicate
value.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / pradip patil
TreeMap is implements Map interface it holds key and value pair and it doest allow duplicate keys where as it allows duplicate values.
TreeSet implements Set interface and it doesnt allow duplicats elements.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / srikanth
treemap is used for storing key value pair without
duplicates in sorted order
sortedset is an interface which is extending set interface
| Is This Answer Correct ? | 3 Yes | 4 No |
What is java api for xml-based rpc (jax-rpc)?
Define connection pooling?
What is jradiobutton in java?
Define orm and its working in j2ee?
How java is reliable?
Possible ways for debugging java ,javascript,jsp and servlet. Can we use System.out.println debugging java.
How to call main class with in main class?
What is credentials?
Is core java and j2se same?
What are types of j2ee clients?
What is container-managed transaction?
Why java is called portable language?