• 2022-05-31
    给出以下代码,请问该程序的运行结果是什么?( )class S1 {public static void main(String[] args) {new S2();}S1() {}}class S2 extends S1{S2() {System.out.print("S2");}}请选择一个正确答案:(1)S1(2)S2(3)S1S2(4)S1S2
    A: 1
    B: 2
    C: 3
    D: 4