You can’t call a default constructor once you’ve created a constructor that takes arguments. You’ll have to create the no argument constructor yourself in order to make a call from the parameterized constructor .
Read moreWhat happens to default constructor in Java?
Java compiler automatically creates a default constructor (Constructor with no arguments) in case no constructor is present in the java class . Following are the motive behind a default constructor. Initialize all the instance variables of the class object.13 Ağu 2018
Read more