Difference between treemap & sortedset

Answers were Sorted based on User's Feedback



Difference between treemap & sortedset..

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

Difference between treemap & sortedset..

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

Difference between treemap & sortedset..

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

Post New Answer

More J2EE Interview Questions

What is j2ee architecture?

0 Answers  


Is java a web technology?

0 Answers  


What does the application client module contain?

0 Answers  


What are the j2ee client types?

0 Answers  


What type of code is java?

0 Answers  






Is java a high level language?

0 Answers  


What is authorization constraint?

0 Answers  


Difference between treemap & sortedset

3 Answers   Oracle,


What is multi tier architecture in j2ee?

0 Answers  


Urgent recruitment in CTS for JAVA .Experience 3 to 10 years.

1 Answers   CTS,


What is a component in java?

0 Answers  


What is containers in java?

0 Answers  


Categories