Skip to content
Sharp

Software Architecture · interview question

Which design pattern is best suited to solve the 'Telescoping Constructor' anti-pattern commonly found in Java classes with many optional parameters?

Multiple choiceEasychapter-13-curatedpremiumsoftware-architecturebuilder-pattern
Choose one answer
Answer and explanation

Correct answer

A. Builder

Why

The Builder pattern allows for the construction of complex objects step by step. It avoids the need for a long list of constructor parameters by providing a clear, fluent API for object creation.

Test yourself on Software Architecture

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

Start free test
All Software Architecture questions →