Originally posted by Vaibhav Potter:
(Does the real exam will have questions of Design Patterns other than the 6 discussed in HFSJ..?)
My post from ScwcdFaq:
Why am I seeing Design Patterns in mock exams that aren't in the objectives?
Mock exams, as well as the real exam, contain answer options other than the 6 Design Patterns from the objectives. Some are real and some are not. "Composite Delegate" is an option in HFSJ but was something we think Bert made up because he likes to play jokes. Patterns other than the Big 6 are never the correct answer on the real exam. Ever. Use this knowledge to your advantage.
The 6 you need to know are: * Transfer Object * MVC * Front Controller * Business Delegate * Service Locator * Intercepting Filter (sometimes just called Filter)
Also note that in previous versions of the exam, the following patterns were covered (and so you may see them more frequently in older mock exams): * Value Object - (now more commonly called Transfer Object) * Model-View-Controller - (aka MVC) * Data Access Object (DAO) * Business Delegate * Front Controller
Question 4 : Identify the techniques that can be used to implement 'sessions' if the client browser does not support cookies. (Select 3 correct options. )
1) Using Http headers.
2) Using https protocol.
3) Hidden form fields.
4) URL rewriting
5) It cannot be done without cookie support.
Answer from JDiscuss : (1, 3, 4)
Question 5 : You do not want multiple threads to be executing your servlet's methods because its methods are not thread safe. What is the right way to ensure this? (Select 2 correct options.)
1) Make its methods synchronized.
2) Make it implement MultiThreadModel.
3) Make it implement SingleThreadModel.
4) You don't need to do anything as the container automatically takes care of this.
Answer from JDiscuss : (1, 3)