Thursday, April 7, 2011

.NET and Java J2EE Design pattern interview question: - What is the difference between Facade and Mediator pattern?

Answer:
Facade Design pattern

  1. Aims at simplifying interface.

  2. Existence of façade is not known to sub-system.

  3. Intermediates between client and sub stem.

Mediator Design pattern


  1. Aims at simplifying object interaction.

  2. Existence of mediator is known to objects since they interact using
    the same.

  3. Intermediates between various objects which want to interact.
Regards,

Do visit our .NET design pattern and Java J2EE design pattern interview questions.

No comments: