Difference between treemap & sortedset

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is general entity?

508


What is declaration?

570


Describe the file types *.ear, * .jar and *.war?

508


What is B2B?

563


How does javac compiler work?

467






What is source file in java?

511


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

550


What is the description for expression element?

522


What is java gui?

502


Why java is not 100% object oriented language?

496


What is actionform?

552


What is a java applet?

552


What does application client module contain?

549


How many java languages are there?

496


What is container-managed transaction?

579