Home > DeveloperSection > Interviews > What is the difference between HashSet and TreeSet?

Posted on    May-12-2015 1:37 AM

 Java Java  Collection 
Ratings:
 1 Answer(s)
  364  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Points:4035
Posted on    May-12-2015 1:37 AM

HashSet maintains no order whereas TreeSet maintains ascending order.

Don't want to miss updates? Please click the below button!

Follow MindStick