What is an enumeration?



What is an enumeration?..

Answer / Murli Kumar Mishra

An enumeration in Java is a predefined set of named constants that belong to the same type. It provides a way to create a set of related, distinct values that can be easily referenced in code. An enumeration is represented by the Enumeration interface and its implementing classes such as Enum.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What happens if a constructor is declared private?

1 Answers  


What are the three parts of a lambda expression?

1 Answers  


What are the methods to rectify ambiguities in the interfaces in JAVA?

1 Answers   CGI,


Explain the importance of thread scheduler in java?

1 Answers  


What is boolean used for?

1 Answers  


Can u overload main()method.Give with example.

6 Answers   IBM, Schimatic Technologies,


Is it necessary that each try block must be followed by a catch block?

1 Answers  


What is string :: npos?

1 Answers  


Can we sort array in java?

1 Answers  


Program to find greatest prime number in n numbers?

3 Answers   Huawei,


What do you mean by aggregation?

2 Answers  


What does t in java mean?

1 Answers  


Categories