adplus-dvertising
frame-decoration

Question

What is the order of variables in Enum?

a.

Ascending order

b.

Descending order

c.

Random order

d.

depends on the order() method

Posted under Java Programming

Answer: (a).Ascending order

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the order of variables in Enum?

Similar Questions

Discover Related MCQs

Q. Can we create an instance of Enum outside of Enum itself?

Q. If we try to add Enum constants to a TreeSet, what sorting order will it use?

Q. Which method returns the elements of Enum class?

Q. Which class does all the Enums extend?

Q. Are enums are type-safe?

Q. Which of the following is the advantage of BigDecimal over double?

Q. Which of the below data type doesn’t support overloaded methods for +,-,* and /?

Q. What is the base of BigDecimal data type?

Q. What is the limitation of toString() method of BigDecimal?

Q. Which of the following is not provided by BigDecimal?

Q. BigDecimal is a part of which package?

Q. What is BigDecimal.ONE?

Q. Which class is a library of functions to perform arithmetic operations of BigInteger and BigDecimal?

Q. Which of these is long data type literal?

Q. Which of these can be returned by the operator &?

Q. Literals in java must be appended by which of these?

Q. Literal can be of which of these data types?

Q. Which of these can not be used for a variable name in Java?

Q. Which of these is necessary condition for automatic type conversion in Java?

Q. What is the prototype of the default constructor of this class?

public class prototype { }