logo

Crowdly

Browser

Додати до 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%
✅
Переглянути це питання
In the Decorator pattern, what is the responsibility of the abstract Decorator class?
0%
0%
✅
0%
Переглянути це питання
Consider the code: new BufferedReader(new FileReader("file.txt")). What role does BufferedReader play in this construct?
0%
0%
0%
❌
Переглянути це питання
Which method from java.util.Arrays acts as an Adapter between an array and the List collection interface?
0%
0%
0%
✅
Переглянути це питання
Why is the Decorator pattern often favored over deep class inheritance hierarchies?
0%
0%
0%
✅
Переглянути це питання
Can multiple instances of the same ConcreteDecorator be chained together in Java?
0%
0%
❌
0%
Переглянути це питання
What happens to the interface of the wrapped object in the Decorator pattern from the client's perspective?
0%
0%
0%
✅
Переглянути це питання
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%
Переглянути це питання
In Java GUI programming, what does a class like java.awt.event.WindowAdapter primarily provide?
0%
0%
❌
0%
Переглянути це питання
In Java, why is the Object Adapter pattern generally preferred over the Class Adapter pattern?
0%
✅
0%
0%
Переглянути це питання