Hi everyone, I am preparing to be re-certified with OCMJEE6 and
Here is a question from EPractice Lab which they allow me to post here since I don't agree with their provided answer
Java EE Business Delegate patterns refers to which OO design approach
A. Separation of Concerns
B. Delegation
C. Encapsulation
D. Abstraction
Here is the quote from Oracle's Core J2EE Pattern,
http://www.oracle.com/technetwork/java/businessdelegate-137562.html
Use a Business Delegate to reduce coupling between presentation-tier clients and business services. The Business Delegate hides the underlying implementation details of the business service, such as lookup and access details of the EJB architecture.
The Business Delegate acts as a client-side business abstraction; it provides an abstraction for, and thus hides, the implementation of the business services.
So it is a bit of everything here. But I think the main intention of BD is to hide the underlying implementation details to access EJB service. So I opt for C. The provided answer is B which I think it is just means of implementation details.
What is your opinions?
Thank you and Best Regards,