Default constructor in java
Default or no-argument constructor A constructor which does not have any parameter is called default or no-argument constructor. If no constructor is available within the class then java compiler automatically or robotically creates a default constructor on the time of compilation. Syntax: ClassName(){ //Block of statements (Optional) } Why default constructor is used? Default constructor … Read more