Vidyalelo
Java Programming · Q81

Data Types and Variables

Programming · Java Programming · question 81

Q81

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
Answer
B.
Sorted in alphabetical order of Enums
C.
Sorted based on order() method
D.
Sorted in descending order of names of Enums

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board