File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Design Pattern Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Design Pattern Question" Watch "Design Pattern Question" New topic

Design Pattern Question

Manju Devarla
Ranch Hand

Joined: Dec 14, 2006
Posts: 85
Which of the following design patterns is used to separate the task of writing the GUI screens and business logic?

Select 1 correct option.

A.View Logic
B.Front Controller
C.Model View Controller
D.Business View
E.Business Delegate

its both Front Controller and MVC right..
Chakravarthy Gogineni

Joined: Nov 09, 2005
Posts: 10
MVC does this task along with separating data access. I think Front Controller would be more suitable answer to the given question.

Philip Plenckers

Joined: Jul 25, 2006
Posts: 18
I would rather say MVC is the appropriate answer. Front Controller deals with the allocation of the incoming request to the proper servlet (at least in our case). MVC separates the concerns of Model (business logic), View (GUI-presentation) and control,

Prakash V

Joined: Mar 19, 2007
Posts: 3
MVC is the correct answer.

Model View Controller [aka MVC, aka Model 2 architecture]
* You want to keep Views/presentation, Controls/business logic, and Models/data access separate.
Allows multiple view types for the same info
Decouples presentation, business logic, and data access components
Related Patterns
Front Controller

Front Controller
A centralized access point for presentation-tier request handling.
* You want to avoid duplicate control logic.
* You want to apply common logic to multiple requests. (IF)
* You want to separate system processing logic from the view. (MVC)
* You want to centralize controlled access points into your system. (IF)
Centralizes control (IF)
Improves reusability
Related Patterns
Intercepting Filter
Chakravarthy Gogineni

Joined: Nov 09, 2005
Posts: 10
More discussion on this question:
I agree. Here's the link:
subject: Design Pattern Question
It's not a secret anymore!