Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. An enum type is a special data type that enables for a variable to be a set of predefined constants|
Sample Code for enum
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   java5   enum   basic interview question basic   frequent|
Try 2 Question(s) Test
|Enums cannot be declared ..|
|What are concepts introduced with Java 5 ?|
|Can we override compareTo method for Enumerations ?|
|enums are intrinsically ..|
|If I try to add Enum constants to a TreeSet, What sorting order will it use ?|
|When were Enums introduced in Java ?|
|What is an enumeration?|
|Can we extend an Enum ?|
|Shall we keep the enumeration name in all capital letters as it contains all constants ?|