
It does the same thing whether you write it or get it by default.

The compiler initializes variables at the beginning of every constructor, including this one. In this situation, the compiler will complain if the superclass doesnt have a no-argument constructor so you must verify that it does.

This default constructor will call the no-argument constructor of the superclass. For Example, A car only has the main option give to the user to control it.Like Break, Gear, Steering, accelerator, etc. In Java, if a class does not define a constructor, compiler will insert a default no-argument constructor for the class by default. If user defines a constructor in a class then java compiler will not create default constructor. The Java compiler automatically creates a default constructor if we do not write any constructor in. The compiler automatically provides a no-argument, default constructor for any class without constructors. Abstraction is one of the major features of the OOP concept.Abstraction is a process of hiding the implementation details and handles complexity from the user, only main and usable functionality provided to the user. Default constructor is a constructor created by compiler if user does not create a constructor in a class.

And it is said that these constructors are used to initialize default values to the class attributes.However, if the programmer provides a constructor, be it a simple one like: public class Main A Default Constructor is a constructor with no parameter. Default constructors are provided by the compiler when the programmer fails to write any constructor to a class.
