指出下面程序的运行结果:
19 查阅
参考答案:
class A{
\r\n
static{
System.out.print(\"1\");
}
public A(){
System.out.print(\"2\");
}
}
class B extends A{
static{
System.out.print(\"a\");
}
public B(){
System.out.print(\"b
参考答案:
class A{
\r\n
static{
System.out.print(\"1\");
}
public A(){
System.out.print(\"2\");
}
}
class B extends A{
static{
System.out.print(\"a\");
}
public B(){
System.out.print(\"b