• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

IBM Mock Question

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All --
An Observer is a design pattern where dependent objects "register" with another "server" object so that they are notified of changes to the server object. The server object isn't specifically aware of its dependents, but only knows to notify them of changes to its state. Which of the following uses an Observer pattern to maintain the correct separation of model and view in a layered software architecture?
a) GUI components register with business components so that they can update their views when the underlying model objects change.
b) GUI components register with other GUI components so that can be notified of user changes to the state of the system.
c) Business components register with GUI components so that the GUI components know who to ask for updates to their state.
d) Business components register with other business components so that they can enforce business rules based on state change.
Can somebody please help me figure out what's the correct answer on this. Thanks.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Answer for ur Q is a). However this and all other questions have been discussed in this forum . So pelase refer to Sandeep's [LONG POST]'s .
Tahir Mansoori
SCJP 91%
IBM OOA&D 92%
 
Boyet Alcudia
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tahir...
 
    Bookmark Topic Watch Topic
  • New Topic