0 votes
in JAVA by

Difference between HashSet and TreeSet.

Difference between HashSet and TreeSet can be seen below:

HashSetTreeSet
Inserted elements are in random orderMaintains the elements in the sorted order
Can able to store null objectsCouldn’t store null objects
Performance is fastPerformance is slow

Related questions

+1 vote
asked May 24, 2019 in JAVA by rajeshsharma
0 votes
asked May 24, 2019 in JAVA by rajeshsharma
...