Difference between treemap & sortedset

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java awt event?

495


What is conversational state?

539


What is distributed application?

537


What is basic authentication?

549


What are the main components of the j2ee application?

482






What is archiving?

557


What is declaration?

573


What is setbounds in java?

499


Give some advantages of orm (object-relational mapping)?

551


What is java mobile?

488


What is a plugin in java?

475


How many types of modules is defined by j2ee specification?

484


I’m new to WebLogic Does anyone knows how to Deploy Application using

1756


What are the main components of a class in java?

494


What is java 2 platform, standard edition (j2se)?

525