Skip to content
Sharp

Modern Java · interview question

Which of the following is a disadvantage of using constructors compared to static factory methods?

Multiple choiceMediumchapter-7-curatedpremiummodern-javastatic-factory-methods
Choose one answer
Answer and explanation

Correct answer

D. Constructors cannot have custom names.

Why

Constructors must have the same name as the class, limiting their ability to convey specific creation intent. Static factory methods can be given descriptive names.

Test yourself on Modern Java

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

Start free test
All Modern Java questions →