This sounds reasonable, but if you chain instantiation in the constructors and you rely as dependency one on another, that means if we are talking about listeners (e.g) then we may end up acting on an object whose initialization was not completed a.k.a still null. If you look at the implementation of String, it has an elegant solution.

--

--

--

Technical Lead - Passionate leader and developer at Siemens

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Huba Albu

Huba Albu

Technical Lead - Passionate leader and developer at Siemens

More from Medium

Source Code Provisions and its Impact on the Regulatory Aims of Ensuring the Safety and Efficacy of…

Solved: Error Wring Proxy Settings on Windows 11 (2022 Update)

Hadoop-Doing the simple(Big) task(s) , the hardest way possible

The Homo Sacer and the Intellectual Asphyxiation of Japan