We all know that the JVM provides us with a standard constructor in every java program.
But if we declare any other type of constructor, then it does not provide a default constructor of any type.
So my question is, is it mandatory to declare a default constructor when we declare some other type of constructor in our program.
If YES, then explain why? If NO, also explain why?
Give a solution with a suitable example.
user3382585
source
share