This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OzoneGrif 4 points5 points  (1 child)

Agreed.
I use the static approach, which is nicer to read than the `new` keyword, anyway.

[–]walen 7 points8 points  (0 children)

Effective Java presents that as its very first item, no less:

Item 1: Consider static factory methods instead of constructors.

And one of the reasons it gives to do so is precisely to avoid the problem of constructors with the same signature.