wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock test on design patterns : ATTENTION 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 "mock test on design patterns : ATTENTION" Watch "mock test on design patterns : ATTENTION" New topic
Author

mock test on design patterns : ATTENTION

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
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.

thanks
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.
Thanks.


SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
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 ]

"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Srikanth Raghavan
Ranch Hand

Joined: Oct 31, 2005
Posts: 389
Thank you Niranjan and Thank you Edisandro for sharing your invaluable tips.
 
GeeCON Prague 2014
 
subject: mock test on design patterns : ATTENTION