If We Try To Add Enum Constants To A Treeset What Sorting Order #24
If we try to add Enum constants to a TreeSet, what sorting order will it use?
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Data Types Variables Arrays - Java Enums - Quiz No.1.
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