Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is default constructor?

Category: Java

No argument constructor of a class is known as default constructor. When we don’t define any constructor for the class, java compiler automatically creates the default no-args constructor for the class. If there are other constructors defined, then compiler won’t create
default constructor for us.

Leave a Reply

Your email address will not be published. Required fields are marked *