• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

doubt in design patterns

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Javabeat i have the below question.

4.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

My answer is B and C.But the mock exam gave the answer as only Front Controller. Even MVC pattern separates business logic and presentation logic. Please let me know,if I'm wrong.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MVC, Model View Controller, does some thing extra then Front Controller(is a part of MVC).
as the question was very much specific to Front Controller, answer should be 'B'.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the question doesn't describe Front Controller at all.

The answer should only be MVC.
 
author
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Marc. I see very little in the question (what we call the "stem") that relates to the Front Controller pattern. The FC pattern primarily concerned with handling common "infrastructure" tasks that all of your HTTP requests need to process. But "separation of business from presentation logic" falls more in line with the MVC pattern.

-Bryan
 
I do some of my very best work in water. Like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic