Hello everybody,
Please see the following questions. The answers are provided as well. I need some explanation why these answers are best suited for these questions, as I cannot find it out myself. If you feel the answers are incorrect, please tell what should the correct one be.
1. You need to create a custom class loader to implement custom security. Therefore, you need to create objects without knowing the class of the objects or how to create them. What design
pattern would you use?
Options:
a. Abstract Factory
b. Factory
c. Builder
d. Prototype
e. Singleton
The answer is: Prototype
---------------------------------------------------------------------------
2. A website offer's the customers price comparisons on a variety of different products. Revenue is generated by click through sales when the customer has found the best price. You are in charge on converting the web-based solution over to appropriate
J2EE technology. Which choce is the best?
a.
JSP,
Servlets b. JSP, Servlets, EJBs
c.
Applets, EJBs
Answer: a. JSP, Servlets
Thanks in advance.
