What is the difference between a treeset and hashset in Java?

  1. In a treeset data are placed in order

  2. In a hashset data are placed in order

  3. Both are same

  4. None of the above


Correct Option: A

Find more quizzes: