Huba Albu
1 min readJun 18, 2020

--

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.

--

--

Huba Albu
Huba Albu

Written by Huba Albu

Technical Lead - Passionate leader and developer at Siemens

Responses (1)