Similar to methods, a Java constructor may or may not have any parameters (arguments). If a constructor does not accept any parameters , it is known as a no-argument constructor. For example, private Constructor() { // body of the constructor }
Read moreWhat are constructor parameters?
The parameterized constructors are the constructors having a specific number of arguments to be passed . The purpose of a parameterized constructor is to assign user-wanted specific values to the instance variables of different objects. A parameterized constructor is written explicitly by a programmer.
Read more