📅  最后修改于: 2022-03-11 14:52:30.509000             🧑  作者: Mango
What is the output of following code? int i = 10; if(i++ == i) System.out.println(i + " is good"); else System.out.println(i + " is bad"); int j = 20; if(++j == j) System.out.println(j + " is good"); else System.out.println(j + " is bad");
//11 is bad
//21 is good