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
If we try to add Enum constants to a TreeSet, what sorting order will it use?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
If we try to add Enum constants to a TreeSet, what sorting order will it use?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!