Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between HashSet and TreeSet

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Whats the difference between the HashSet and TreeSet class. I mean I want the difference in the way they store the objects.

Regards,
Sivaraman.L
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaDocs for these classes should clearly answer your question. If not, post specific questions about the aspects you didn't understand.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic