首页 > 试题广场 >

从下面挑出程序片段并将它的序号填入空格中。下列有多余的片段。

[填空题]
从下面挑出程序片段并将它的序号填入空格中。下列有多余的片段。填完空格的程序必须要能够编译与执行并产生出下面的输出。注意:每项选项可以使用一次以上。
1、Acts( );
2、Nose( );
3、Of76( );
4、Clowns( );
5、Picasso( );
6、Of76[]i=new Nose[3];
7、Of76[3]i;
8、Nose[]i=new Nose( );
9、Nose[]i=new Nose[3];
10、class
11、extends
12、interface
13、implements
14、public int iMethod( );
15、public int iMethod{ };
16、public int iMethod( ){;
17、public int iMethod( ){ };
18、i
19、i( )
20、i(x)
21、i[x]
22、class
23、5 class
24、7 class
25、7 public class
26、i.iMethod(x)
27、i(x).iMethod[ ]
28、i[x].iMethod( )
29、i[x].iMethod[ ]
30、Acts
31、Nose
32、Of76
33、Clowns
34、Picasso

1 Nose {
  2
}
abstract class Picasso implements 3 {
  4
    return 7;
  }
}
class 5 6 7 { }
class 8 9 10 {
  11
    return 5;
  }
}
public 12 13 extends Clowns {
  public static void main(String [] args) {
    14
    i[0] = new 15
    i[1] = new 16
    i[2] = new 17
    for(int x = 0; x < 3; x++) {
      System.out.println(18 + " " + 19.getClass( ));
    }
  }
}
输出:
    % java 20
    5 class Accts
    7 class Clowns
    21 Of76

这道题你会答吗?花几分钟告诉大家答案吧!