Salesforce CRM Java Developer Mock Interview

Practice 20 Salesforce CRM Java Developer interview questions covering Apex, integration patterns, and backend architecture.

WRITTEN BY WILLIAM SWANSEN
QUESTION 4 OF 20

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.

Create a free account to add your own answer →
William Swansen
20 QUESTIONS & ANSWERS · SALESFORCE CRM
See membership