I don't understand why we would ever need to initialise them separately if all 3 of them are then initialised at the last point anyway.
You must be signed in to leave a comment
14 January 2021, 17:54
The Java api defines a lot of facory methods for convenience and safety reasons. And such initalizers are the base for that. Also that's the way to using constructors.