Skip to content
Sharp

Design patterns · interview question

Which of the following is a key characteristic of the Proxy pattern in Java?

Multiple choiceMediumchapter-13-curatedpremiumdesign-patternsproxy-and-adapter
Choose one answer
Answer and explanation

Correct answer

A. Matches the interface of the real object.

Why

The Proxy pattern must match the interface of the real object it represents, which allows it to be used interchangeably without clients needing to know whether they are using the real object or the proxy.

Test yourself on Design patterns

A free test with instant, explained results. No account needed.

Start free test
All Design patterns questions →