How is Enum used in Java?
You should already recognize this as a technical question. It is asking you how a concept or process is used within the Java programming language. Continue to answer technical questions directly and briefly, with little embellishment, anticipating follow-up questions from the Salesforce interviewer.
"Enum is a type whose field is made up of fixed sets of constants. An example of this would be the setting of times within a Java program used in Salesforce as morning, noon, afternoon, and evening. These become key words used to create enum types, which are similar to a class."
Community answers are written by other candidates practicing this set. Reading how others frame the same question is one of the fastest ways to sharpen your own.
Anonymous Answer
Enum is used as a collective store of constants. For example, an Enum could contain all of the months of the year (JANUARY, FEBRUARY,...DECEMBER).
Marcie's Feedback
Nice! You've done a good job providing a definition and an easily understood example.
