I am really confused about the outcome of the following program. Could anyone explain it?
public class Prg {
Prg () {
this(0);
System.out.println("Hi ");
}
Prg (int x) {
this(0, 0);
System.out.println("Hello");
}
Prg (int x, int y) {
System.out.println("How are you");
}
public static void main(String[] args) {
Prg ob = new Prg ();
}
}
Output:
How are you
Hello
Hi