Practice 20 Salesforce CRM Java Developer interview questions covering Apex, integration patterns, and backend architecture.
Question 10 of 20
How to Answer
Example Answer
Community Answers

William Swansen has worked in the employment assistance realm since 2007. He is an author, job search strategist, and career advisor who helps individuals worldwide and in various professions to find their ideal careers.
As the interview with Salesforce progresses, the hiring manager will continue to ask you technical questions about writing programs within Java. Some of these will be very simple, asking you to define basic concepts that any programmer should know. Others will be more complex and require you to give longer, more complicated answers to define the concept, describe how it is used, and give an example of how to write the code. The best way to prepare for these is the practice these types of questions, stating the answers out loud, so you become comfortable doing this.

William Swansen has worked in the employment assistance realm since 2007. He is an author, job search strategist, and career advisor who helps individuals worldwide and in various professions to find their ideal careers.
"Composition is a method used in Java to implement has-a relationships within classes. This facilitates code reuse through object composition. When using composition, you implement instance variables that refer to different objects. The benefit is to provide visibility of the objects to other classes so they can reuse them."
Anonymous Answer
Composition is a design practice used to implement the "has-a" relationship. This helps facilitate code reuse and provides visibility of the objects to other classes.
Marcie's Feedback
Excellent. What kind of experience do you have in Composition? Can you talk a bit about it to personalize your response more?
Write Your Answer
0 - Character Count
Unlock expert responses for technical Salesforce and Java integration interviews.
Get StartedJump to Question

Written by William Swansen
20 Questions & Answers • Salesforce CRM

By William

By William