Home »
MCQs »
Java MCQs
Enumeration in Java is ___
62. Enumeration in Java is ___.
- Data type which contains fixed set of constants
- Method
- Class
- None of these
Answer: A) Data type which contains fixed set of constants
Explanation:
In Java, the Enumeration is a data type which contains a fixed set of constants, they are used to create our own data type like classes.