my answers:
Which of the following are true about SSL?
a. SSL facilitates secure communication
b. SSL is a high level protocol and sits on top of HTTP
c. SSL is a low level protocol and sits below HTTP
d. SSL works only with HTTP
ANSWER: a,c
------------------------------------------------------
Select the correct sentences from below
a. In the mediator pattern the individual Objects participating in the collaboration maintain direct references to each other
b. Facade pattern is used to provide a simple interface to a subsystem comprising of a large number of objects.
c. Memento pattern preserves Encapsulation boundaries whil exposing an object's internal state
d. State pattern is used for operations that have large number of conditional statements based on the Object's state
ANSWER: b,c & d
---------------------------------------------------------------------------Which of the following are true about the Observer pattern ...
a. The subject is the publisher of the message and the Observer is the subscriber of the message notification
b. Observers can be dynamically added.
c. The Observer pattern supports broadcast communications
d. It promotes loose coupling between senders of messages and receivers of messages during communication
e. None of the above
ANWSER: a, b,c & d. B is correct since we can add subscriber to the subject on the fly. Applications of the Observer pattern include the JMS and Loosely Coupled Events (LCE) in COM+. In JMS you can dynamically add message listener to the topic. In LCE you can add subscriber dynamically too.
---------------------------------------------------------------------------When is unsetEntityContext() invoked on an Entity bean?
a. When the entity bean is to be garbage collected
b. After an entity bean is garbage collected
c. after the finalize() method has been invoked on the EntityBean
d. None of the above
ANWSER: a. True the
EJB spec doens't say it is GCed after the method is called, but in the specs 2.1 Page 185, the life cycle diagram says that after unsetEntityContext is called, the bean doesn't exist. If this doesn't mean it is garbage collected, what else can it mean?
-David