logo

Crowdly

Browser

Add to Chrome

Questions Bank (1461554 total)

In the GoF Adapter pattern structure, what role represents the existing class with an incompatible interface that needs adapting?
0%
0%
0%
✅
View this question
In the Decorator pattern, what is the responsibility of the abstract Decorator class?
0%
0%
✅
0%
View this question
Consider the code: new BufferedReader(new FileReader("file.txt")). What role does BufferedReader play in this construct?
0%
0%
0%
❌
View this question
Which method from java.util.Arrays acts as an Adapter between an array and the List collection interface?
0%
0%
0%
✅
View this question
Why is the Decorator pattern often favored over deep class inheritance hierarchies?
0%
0%
0%
✅
View this question
Can multiple instances of the same ConcreteDecorator be chained together in Java?
0%
0%
❌
0%
View this question
What happens to the interface of the wrapped object in the Decorator pattern from the client's perspective?
0%
0%
0%
✅
View this question
Which class in the standard java.io package serves as a classic example of the Adapter pattern by bridging byte streams to character streams?
❌
0%
0%
0%
View this question
In Java GUI programming, what does a class like java.awt.event.WindowAdapter primarily provide?
0%
0%
❌
0%
View this question
In Java, why is the Object Adapter pattern generally preferred over the Class Adapter pattern?
0%
✅
0%
0%
View this question