Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:45 pm
by answerhappygod
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