Facebook Java Developer Mock Interview

Practice 20 Facebook Java Developer interview questions covering system design, scalability, and backend engineering.

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 Facebook 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 Facebook as morning, noon, afternoon, and evening. These become key words used to create enum types, which are similar to a class."

William Swansen
20 QUESTIONS & ANSWERS · FACEBOOK
See membership