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

How many types of objects are there in java?

465


What is gridlayout in java?

475


Is advanced java and j2ee same?

467


What is japplet in java?

515


Define thin client?

514






What is a j2ee module?

530


What is j2ee architecture?

481


What is actionerrors?

526


What is java ee used for?

455


What is declaration?

571


What is the description for expression element?

525


What is difference between java and core?

460


What is application assembler?

522


What is assembly in java?

480


What is j2ee and j2se?

484