LearnFrenzy
Sign in Take a free test

Constructors and the this Keyword · Constructors MCQ · Question 17

Why use the builder pattern? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 17 Back to Exercise

When is the builder pattern the best choice?

  • A For classes with one field
  • B For objects with many parameters, especially optional ones, built in a readable way Correct
  • C For static utility classes
  • D For interfaces
Correct Answer: Option B

It avoids the "telescoping constructor" problem.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links