Facebook Java Developer Mock Interview

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

WRITTEN BY WILLIAM SWANSEN
QUESTION 9 OF 20

Facebook developers usually write their programs using Java. Can you describe how access modifiers are used in Java?

Technical questions asked in this fashion are requesting that you describe how a concept or process is used when programming in Java. When answering this type of question, you may want a skip defining the concept and simply state how it is used. You can still provide an example if this helps clarify your answer. Make sure to keep your answer brief and to the point. The Facebook interviewer will ask a follow-up question if they need additional information.

"Access modifiers are used to establish accessibility to classes, methods, and other members when writing code in the Java programming language. The four types of access modifiers are default, public, private, and protected. These define how the classes, methods and members can be accessed."

William Swansen
20 QUESTIONS & ANSWERS · FACEBOOK
See membership