秋衣秋裤紧身:那位大虾帮帮我做做这几道选择吧~~很急!!等这救命的!!

来源:百度文库 编辑:高考问答 时间:2024/05/04 19:49:05
还是那个人~~~~求求大家了~~如果没有大案我真的会死的很惨~~~~我知道题很多,但是还是麻烦大家了~~!!!!选择比较多~~~~求求大家了~!!
31. interface Foo{
int k=0;
}
public class Test implements Foo{
public static void main(String args[]){
int i;
Test test = new Test();
i=test.k;
i=Test.k;
i=Foo.k;
} }
A.Compilation succeeds.
B.An error at line 2 causes compilation to fail.
C.An error at line 9 causes compilation to fail.
D.An error at line 10 causes compilation to fail.
E.An error at line 11 causes compilation to fail.
32. 编译并运行以下程序,以下描述哪个选项是正确的( )
1. class X{
2. public String toString(){
3. return super.toString();}
4. }
A、编译通过运行无异常 B、编译通过但运行时出错 、
C、行2出错,不能成功编译 D、不能成功编译,行3出错
33. 下列关于修饰符混用的说法,错误的是( )
A. abstract不能与final并列修饰同一个类
B. abstract类中不可以有private的成员
C. abstract方法必须在abstract类中
D. static方法中能处理非static的属性
34. 容器Panel和Applet缺省使用的布局编辑策略是( )
A、BorderLayout B、FlowLayout C、GridLayout D、CardLayout
35. 以下标识符中哪项是合法的是(选两个 )
A、 BigMeaningless Name B、$int
C、 1 st D、_1
36. 以下代码段执行后的输出结果为( )
int x=3; int y=10;
System.out.println(y%x);
A、0 B、1 C、2 D、3

31、A
32、A
33、C
34、B
35、D
36、C