Static Factory Methods - Effective Java, Item 1

How to use static factory methods to overcome three shortcomings of constructors

Always embed videos

(and give me a cookie to remember - privacy policy)

Watch on YouTube

Static factory methods are awesome! They allow us to overcome three shortcomings of constructors by allowing us to freely choose a name, take control over returned instances, and take control over the returned type. I use them every day.

Also, I'm actually sorry about all the "actuallies". 😉

Links to follow up: