Why default constructor is not provided by compiler when class contains parametrized constructor defined by user? [duplicate]
问题 This question already has answers here : Java default constructor (11 answers) Closed 8 months ago . I am a newbie in java and was wondering "Why default constructor is not provided by compiler when class contains parametrized constructor defined by user?" 回答1: When an author decides to not provide any constructor, it is perfectly fine that the compiler adds that default constructor. Obviously the user doesn't care "how" objects of that class are created, he accepts that the "default" kicks