报错:Out of system resources怎么办?
第1题:
执行以下代码后,下面哪些描述是正确的()publicclassStudent{privateStringname=Jema”;publicvoidsetName(Stringname){this.name=name;}publicStringgetName(){returnthis.name;}publicstaticvoidmain(String[]args){Students;System.out.println(s.getName());}}
A.输出null
B.第10行编译报错
C.第11行编译报错
D.输出Jema
第2题:
A.第4行编译报错
B.第5行编译报错
C.编译成功,输出13
D.编译成功,输出14
第3题:
A.null
B.-1
C.编译时出错
D.运行时报错
第4题:
A.equal
B.notequal
C.exception
D.Compilationfails.
第5题:
能打印出一个双引号的语句是( )。
A.System.out.println{""};
B.System.out.println{"*"};
C.System.OUt.println{¨/"};
D.System.OUt.println(¨\¨"};
第6题:
A.编译报错
B.2
C.1
D.3
第7题:
A、编译通过,执行报错
B、编译报错
C、以上选项均不正确
D、编译通过,执行输出127
第8题:
A.x
B.x=x
C.“x=”+5
D.编译报错
第9题:
publicclassBase{publicstaticfinalStringFOO=foo”;publicstaticvoidmain(String[]args){Baseb=newBase();Subs=newSub();System.out.print(Base.FOO);System.out.print(Sub.FOO);System.out.print(b.FOO);System.out.print(s.FOO);System.out.print(((Base)s).FOO);}}classSubextendsBase{publicstaticfinalStringFOO=bar;}Whatistheresult?()
A.foofoofoofoofoo
B.foobarfoobarbar
C.foobarfoofoofoo
D.foobarfoobarfoo
E.barbarbarbarbar
F.foofoofoobarbar
G.foofoofoobarfoo
第10题:
publicvoidfoo(booleana,booleanb){if(a){System.out.println(A”);}elseif(a&&b){System.out.println(A&&B”);}else{17.if(!b){System.out.println(notB”);}else{System.out.println(ELSE”);}}}Whatiscorrect?()
A.Ifaistrueandbistruethentheoutputis“A&&B”.
B.Ifaistrueandbisfalsethentheoutputis“notB”.
C.Ifaisfalseandbistruethentheoutputis“ELSE”.
D.Ifaisfalseandbisfalsethentheoutputis“ELSE”.