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.

1 comment:

TheRohan said...

MySQL Developer Essentials with PHP, Java and .NET in JavaOne & Oracle Develop Conference 2011 to be held in Hyderabad in the month of May………….
The presentation will provide an overview of the resources available to MySQL developers in the three most popular programming languages. Including the core supported drivers and advanced features, as well as how the MySQL connectors can be used with MySQL Enterprise Monitor and Query Analyzer to help developers trace the source of a problematic query. You'll also see code examples for PHP, Java, and .NET and a live demo during the session.

Here’s a link that I received http://bit.ly/e1B2Ez