class Insect { int i = 9; int j; Insect() { prt("i = " + i + ", j = " + j); j = 39; } static int x1 = prt("static Insect。
x1 initialized"); static int prt(String s) { System。out。println(s); return 47; }}public class Beetle extends Insect { int k = prt("Beetle。
k initialized"); Beetle() { prt("k = " + k); prt("j = " + j); } static int x2 = prt("static Beetle。x2 initialized"); public static void main(String[] args) { prt("Beetle constructor"); Beetle b = new Beetle(); }} 输出结果为:static Insect。
x1 initializedstatic Insect。x2 initializedBeetle constructori=9,j=0Beetle。k initializedk=47j=39请教一下,这个结果是怎么出来的?。