logo

Crowdly

Browser

Add to Chrome

Questions Bank (1461554 total)

What is a well-known drawback of using the Decorator pattern?
0%
❌
0%
0%
View this question
In the Decorator pattern, what structural relationship must exist between the Decorator and the Component interface?
0%
0%
0%
✅
View this question
Which wrapper method from java.util.Collections acts as a Decorator by adding thread-safety synchronization to an existing list?
0%
0%
0%
✅
View this question
How does the Decorator pattern affect object identity comparisons (==) in Java?
✅
0%
0%
0%
View this question
What is the main design distinction between the Adapter and Facade patterns?
✅
0%
0%
0%
View this question
What is the primary intent of the Adapter design pattern according to the Gang of Four (GoF)?
0%
0%
✅
0%
View this question
Which class hierarchy in the Java Standard Library extensively utilizes the Decorator pattern?
0%
✅
0%
0%
View this question
What is the primary intent of the Decorator design pattern?
✅
0%
0%
0%
View this question
How does an Object Adapter typically invoke functionality on the Adaptee?
✅
0%
0%
0%
View this question
You have a legacy payment processing class with method makePayment(int cents). Your new architecture requires an interface PaymentGateway with process(BigDecimal dollars). Which design pattern is most appropriate to integrate the legacy class?
✅
0%
0%
0%
View this question