From Book: Sun Certified Enterprise Architect for Java EE Study Guide (Exam 310-051) (Certification Press) by Allen and Bambara
Page : 196
Which of the following are “best practices” for large distributed systems?
A. Avoid business logic implementation in the display code; display inconsistencies can result
because the logic can be copied and modified in one object and not another.
B. Coding data manipulation logic, format and display code, and user event handling together
can make application maintenance simple.
C. Facilitate reuse of user interfaces by segregating application logic from the code for
an existing interface.
D. Utilizing the MVC design
pattern results in a separation of the application data from the
ways that the data can be accessed or viewed as well as from the mapping between system
events (such as user interface events) and application behaviors.
Answer
®3 B is correct. Coding data manipulation logic, format and display code, and user event
handling together can complicate and make application maintenance problematic and costly.
®° A, C, and D are incorrect because they are true.
Need help understand this question. How come B is correct with below explanation from book
- More sophisticated applications may require data to be viewed and
manipulated in several different ways. When business logic is implemented in
the display code, display inconsistencies can result because the logic can be
copied and modified in one object and not another. In addition, any change
to the data display requires updates in several places.
- When data manipulation logic, format and display code, and user event
handling are entangled, application maintenance can be very difficult,
especially over a long span of time.
- User interfaces cannot be reused if the application logic has been combined
with the code for an existing interface.
n Added functionality may require several changes to existent code, which may
be difficult to locate.
- Business logic code may access a vendor-specific product (a database, for
example), thus making the application much less portable.
Aren't A and D correct?