报错:Out of system resources怎么办?
第1题:
A.第4行编译报错
B.第5行编译报错
C.编译成功,输出13
D.编译成功,输出14
第2题:
能打印出一个双引号的语句是( )。
A.System.out.println{""};
B.System.out.println{"*"};
C.System.OUt.println{¨/"};
D.System.OUt.println(¨\¨"};
第3题:
A.equal
B.notequal
C.exception
D.Compilationfails.
第4题:
publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(RuntimeExceptionex){System.out.print(B”);}catch(Exceptionex1){System.out.print(C”);}finally{System.out.print(D”);}System.out.print(E”);}publicstaticvoidbadMethod(){thrownewRuntimeException();}}Whatistheresult?()
A.BD
B.BCD
C.BDE
D.BCDE
E.ABCDE
F.Compilationfails.
第5题:
publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(Exceptionex){System.out.print(B”);}finally{System.out.print(C”);}System.out.print(D”);}publicstaticvoidbadMethod(){}}Whatistheresult?()
A.AC
B.BD
C.ACD
D.ABCD
E.Compilationfails.
第6题:
能打印出-个双引号的语句是( )。
A.System.out.println{"");
B.System.out.println{"*");
C.System.out.println{"/"};
D.System.out.println{"\"");
第7题:
BDE报错时怎么办?
第8题:
阅读以下代码: public class Test{ public static void main(){ System.out.println(“x=”+x); } } 请问,代码运行的结果是?()
第9题:
boolean bool = true; if(bool = false) { System.out.println(“a”); } else if (bool) { System.out.println(“c”); } else if (!bool) { System.out.println(“c”); } else { System.out.println(“d”); } What is the result?()
第10题:
What is the difference between the CUoD and Utility Capacity On Demand?()
第11题:
public class X { public static void main(String [] args) { try { badMethod(); System.out.print(“A”); } catch (RuntimeException ex) { System.out.print(“B”); } catch (Exception ex1) { System.out.print(“C”); } finally { System.out.print(“D”); } System.out.print(“E”); } public static void badMethod() { throw new RuntimeException(); } } What is the result?()
第12题:
输出null
第10行编译报错
第11行编译报错
输出Jema
第13题:
A、编译通过,执行报错
B、编译报错
C、以上选项均不正确
D、编译通过,执行输出127
第14题:
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
第15题:
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”.
第16题:
publicclassX{publicstaticvoidmain(String[]args){try{badMethod();System.out.print(A”);}catch(Exceptionex){System.out.print(B”);}finally{System.out.print(C”);}System.out.print(D”);}publicstaticvoidbadMethod(){thrownewRuntimeException();}}Whatistheresult?()
A.AB
B.BC
C.ABC
D.BCD
E.Compilationfails.
第17题:
A.a
B.b
C.c
D.d
E.Compilationfails.
第18题:
A. hello
B. hello2
C. 编译报错
D. 运行报错,不能将串与整数相加
第19题:
执行以下代码,输出结果的结果是? () public class Test{ public String[] ss = new String[5]; public static void main(String[] args){ System.out.println(ss[1]); } }
第20题:
执行以下代码后,下面哪些描述是正确的() public class Student{ private String name = “Jema”; public void setName(String name){ this.name = name; } public String getName(){ return this.name; } public static void main(String[] args){ Student s; System.out.println(s.getName()); } }
第21题:
以下会产生编译错误的Java语句是()。
第22题:
Which command is used by the system boot process to determine what resources are available to the system?()
第23题:
第4行编译报错
第5行编译报错
编译成功,输出13
编译成功,输出14