Question
What is the purpose of default constructor?
Answer
The java compiler creates a default constructor only if there is no constructor in the class.
What is the purpose of default constructor?
The java compiler creates a default constructor only if there is no constructor in the class.