Home » JAVA Programming » Basic Datatypes » Question
  1. What is the order of variables in Enum?
    1. Descending order
    2. Random order
    3. depends on the order() method
    4. Ascending order
    5. None of these
Correct Option: D

The compareTo() method is implemented to order the variable in ascending order.



Your comments will be displayed only after manual approval.