Java - Inheritance
What will be the output of this code?
class Demo {
Demo() {
this(10);
System.out.println("No-arg constructor");
}
Demo(int x) {
System.out.println("Param constructor: " + x);
}
public static void main(String[] args) {
new Demo();
}
}