Java程序如下
public class Test {
public static void main(String] args) {
new B();} }
class A55{
public A55()
{System.out.print("A");}}
class B55 extends A55{
public B55(){
System.out.print("B");}}
该程序将( )。
选项:
A:不能通过编译。
B:编译执行后输出AB。
C:编译执行后输出B。
D:编译执行后没有输出。
E:a0=new
F:a1 G:a2=new H:只有第1行能通过编译。
发布时间:2024-06-12 01:17:42