Hacker News new | ask | show | jobs
by marcosdumay 709 days ago
Those are the normal issues inherent to constructors as a concept (except for the finalizer one).

Any language that has constructors has some complex rules to solve those things. And it's always good to check what they are when learning the language. Java has one of the simplest set of those rules that I know about.