Overriding default constructor in Java
问题 Pretty easy question, but anyway: is there any reason to override default constructor like this: public SomeObject(){ } It is public. It is does not have any logic. So, is there necessary? I didn't see the whole picture? Appreciate all your help. 回答1: One reason to define an empty no-arg constructor is if there is also a non-default constructor and the no-arg constructor is still desired to be accessible (public or protected). This is because any [other] constructor definition will prevent