给出以下代码,请问该程序的运行结果是什么?( )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
A: 1
B: 2
C: 3
D: 4
举一反三
- 以下程序的输出结果是 String s1="1",s2="2"; String s=s1+s2; System.out.println(s);
- 设s="abcd",s1="123",则执行语句s2=InsStr(s,2,s1)后,s2=()
- 39号元素钇的核外电子排布式是下列排布中的( ) A: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 4 d 1 5 s 2 B: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 5 s 2 5 p 1 C: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 4 d 2 5 s 1 D: 1 s 2 2 s 2 2 p 6 3 s 2 3 p 6 3 d 10 4 s 2 4 p 6 5 s 2 5 p 1
- 试判断原子态:1s1s3S1,1s2p3P2,1s2p1D1,2s2p3P2中,下面哪组是存在的? A: 1s1s3S1,1s2p3P2; B: 1s2p3P2,1s2p1D1; C: 1s2p3P2,2s2p3P2; D: 1s1s3S1,1s2p1D1;
- 电子组态1s2p所构成的原子态为( )。 A: 1s2p1S0,1s2p1P1, 1s2p3S1 1s2p3P2,1,0 B: 1s2p1S0,1s2p1P1 C: 1s2p1S0,1s2p3S1 D: 1s2p1P1,1s2p3P2,1,0