Discussion Forum

  1. Home
  2. »
  3. Languages
  4. »
  5. If we try to add...
If we try to add Enum constants to a TreeSet, what sorting order will it use?

Sorted in the order of declaration of Enums

Sorted in alphabetical order of Enums

Sorted based on order() method

Sorted in descending order of names of Enums

Answer: A . Sorted in the order of declaration of Enums
0Shares
0 0

If you think the posted answer is wrong or Confused About the Answer? Ask for Details Here

Know Explanation? Add it Here
we’ll review your comment and contact you soon….

Leave a Reply

Your email address will not be published. Required fields are marked *

0Shares
0
Scroll to Top