I just wanted to clear my concept here, so i am asking…
If I define an explicit parameterized constructor for my class, can I still invoke the default constructor provided by the java compiler (which is provided for every class by default) ??
Or does it cause result in a compile time error in such case??
Please explain what exactly happens with respect to the calls made by the compiler !!
If and only if no constructor is provided, then a no-argument constructor is created by the compiler.
The JLS states in Chapter 8:
The one “catch” is: