Full Stack Developer (Java) Question:
Download Questions PDF

Tell me what is Bridge pattern?

Answer:

Bridge pattern is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes under structural pattern as this pattern decouples implementation class and abstract class by providing a bridge structure between them.

The bridge pattern is useful when both the class and what it does vary often. The class itself can be thought of as the abstraction and what the class can do as the implementation. The bridge pattern can also be thought of as two layers of abstraction.

Download Full Stack Developer (Java) Interview Questions And Answers PDF

Previous QuestionNext Question
Can you please explain what is CORS? How does it work?Tell us what’s Your Favorite Kind Of Role?