SCWCD : J2EE Patterns Mock Exam Practice Questions
Questions no -1
A developer is designing a multi-tier web application and discovers " need to log each incoming client request ".
Which patterns, taken independently, provide a solution for this problem?
options
A)Transfer Object
B)Service Locator
C)Front Controller
D)Model-View-Controller
Correct answer is : C
Explanations : Front Controller is the best choice for this requirement because every request should go through the front controller.
Front Controller provide "centralized controller for managing the handling of requests".
Questions no -2
Which of the following design pattern "Reduces coupling between presentation tier and business services" ?
options
A)Business Delegate
B)Service Locator
C)Front Controller
D)Transfer Object Assembler
Correct answer is : A
Explanations : Business Delegate "Reduces coupling between presentation tier and business services".
|