Mahipal Nehra

3 years ago · 1 min. reading time · ~100 ·

Blogging
>
Mahipal blog
>
What is facade design pattern in Java?

What is facade design pattern in Java?

Decipher Zone Softwares

<<interface>> a

What is Facade Design Pattern?

 

https://decipherzone.com

What is facade design pattern in Java? Facade Design Pattern is a commonly used software design pattern that is used to structure systems in a way that helps in reducing complexity. It is a straightforward pattern that is a part of the structural design pattern. Structural design patterns deal with class and object composition to form larger structures. It uses a basic pillar of object-oriented paradigm, inheritance, to compose implementations. Facade Design Pattern is no different and it shows a way to make single objects represent an entire subsystem. This design pattern exposes an object that carries out the responsibility of forwarding messages to the objects it represents.

Read: "Top 10 Backend Frameworks for Web Development in 2020"

The Facade design pattern is used in compilers where you can think of it as a large system of code that has other subsystems that have the functionality of parsing, scanning, tokenizing, creating bytecode streams, and whatnot. All of these functionalities can be represented by individual classes. Compliers have a unified interface that shields most of these classes and provides a single simple interface through which other subsystems can be communicated.

Read the full story:  https://www.decipherzone.com/blog-detail/facade-design-pattern

A real-world analogy for the Facade Design Pattern can be a Restaurant System which allows a customer to look at a menu and order the food he or she wants to have. Once the customer, looks at the menu and orders the food, what happens in the restaurant’s kitchen is not the concern of the customer. There might be other subsystems in the restaurant’s kitchen that do other tasks. The customer’s concern is to order the food from the menu and get it. The menu or the waiter depending on how the restaurant works can be thought of as the representation of the entire subsystem of the restaurant because the client can only directly interact with it. This way the complexities have been reduced.

Read: "The RoadMap for Java Developers in 2020"


Comments

Articles from Mahipal Nehra

View blog
3 years ago · 2 min. reading time

https://www.decipherzone.com/blog-detail/docker-microservices · Gone are the days where there was e ...

3 years ago · 1 min. reading time

Looking back to the era where there was no internet is quite difficult. With more and more devices c ...

2 years ago · 1 min. reading time

For the software development industry and programmers 2020 has been a significant year with lots of ...

You may be interested in these jobs

  • Alchemy Medicine

    Purchase Executive

    Found in: beBee S2 IN - 18 hours ago


    Alchemy Medicine Hyderabad, India Full time

    Job Requirements · Job Title: Purchase Executive · Company Name: Alchemy Medicine Pvt. Ltd. · Location: Madhapur, Hyderabad · Salary: ₹22,000 - ₹30,000 per month · Employment Type: Full Time · Job Description: · Alchemy Medicine Pvt. Ltd. is seeking a Purchase Executive to join ...

  • HashRoot Ltd

    Sales and Billing Executive

    Found in: Talent IN 2 C2 - 2 days ago


    HashRoot Ltd Kochi, India

    Sales and Billing Executive · Overview: · We are actively seeking a Sales and Billing Executive to join our team, playing a vital role in the intersection of technology, customer service, and business operations. The ideal candidate will possess a technical background, strong c ...

  • iimjobs

    Associate Director

    Found in: beBee S2 IN - 18 hours ago


    iimjobs Anywhere in India/Multiple Locations/Metros Full time

    Associate Director Shared service and transformation: Pref from Big4, Consulting organizations · We are currently looking for seasoned professionals with experience of setting up shared services or GCC's covering all business functions like IT/ HR /Finance/ Supply chain · As an ...