What is the purpose of a no-arg constructor?
(a)The no-arg constructor you are referring to is a explicitly defined substitute to the “default constructor”.If the programmer doesn’t explicitly define a constructor,then the compiler(javac) automatically defines a default constructor as ClassName(){}.This constructor is not visible in the code,however after the compilation is done,it is present in the java bytecode. (b)In your case, there is … Read more