1.

What is the order of variables in Enum?(a) Ascending order(b) Descending order(c) Random order(d) Depends on the order() methodThe question was posed to me in homework.I'd like to ask this question from Data Type-Enums in portion Data Types, Variables and Arrays of Java

Answer»

The CORRECT ANSWER is (a) Ascending order

Explanation: The COMPARETO() method is implemented to order the variable in ascending order.



Discussion

No Comment Found

Related InterviewSolutions