Win a copy of Head First Android this week in the Android forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

mock test on design patterns : ATTENTION

Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all..

i just gave the chapter mock test on design patterns, from the david bridgewater book. the test had 15 qestions and i got 8 correct.

i really recommend that every exam taker should take this test as once can expect as many as 8 questions in the real exam.

the questions from this chapter test are really good and make you think a lot.In fact they tell things what arent told in HFSJ desugn patterns chapter. I am summarizing the things that i learnt from that chapter mock test -

1. whenever a HFSJ reader sees the word 'cache' the only design pattern that comes to his mind is 'Service Locator'. But david bridge water's book tells - "Business Delegate can cache business data i.e. results of business method calls." The book further says "Service locator caches references to remote objects". So all HFSJ readers, remember that Business delegate too can show some type of caching behaviour. Note the differnce between the caching behaviour of both the patterns.

2. also, HFSJ says Service Locator overcomes code duplicity that is encountered in the Business Delegate. i.e. Service locator helps to reduce the amount of code. David Bridgewater says that Intercepting Filter also helps to reduce the amount of code - this is so because you can put all 'request tracking code' in a sigle filter class rather than putting it in each and every servlet. The book also says, Business Delegate too helps to reduce code ( same way as service locator ).

That was all i wanted to share,
i am in the 2nd reading of the book, hope to finish it soon and buy the voucher take the date and appear for the real thing.

one more thing, is the pattern Data Value Object ( note that this is not a equivalent name for Transfer Object ) included in the exam objectives ???

Please reply.
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Niranjan,

Thanks for sharing this so valuable information with us.

Just one more tip for the exam.

Whenever you see a question involving the service locator pattern, it's very likely you have the business delegate pattern as well.

On the other hand, the opposite might not be true.

I got a few questions from WhizLabs mock exams where you are supposed to choose 3 choices and at least two of them are Business Delegate plus Service Locator just because the question mentions something like object caching.

Regarding the Value Objects and Data Access Object patterns, I'm not sure whether or not they are in the exam but here is the definition :

Value Objects Pattern : Used for encapsulating business data.
Data Access Object Pattern : Used for abstracting the access to the persistency store.
[ October 28, 2006: Message edited by: Edisandro Bessa ]
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Niranjan and Thank you Edisandro for sharing your invaluable tips.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic