K

Kirti • 10.45K Points
Tutor II

Q. If we try to add Enum constants to a TreeSet, what sorting order will it use?

  • (A) Sorted in the order of declaration of Enums
  • (B) Sorted in alphabetical order of Enums
  • (C) Sorted based on order() method
  • (D) Sorted in descending order of names of Enums
  • Correct Answer - Option(A)
  • Views: 140
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics