itgle.com
更多“报错:Out of system resources怎么办?”相关问题
  • 第1题:

    执行下面程序,输出的结果是?()publicclassTest{publicstaticvoidmain(String[]args){inta=5;doubleb=8;a=a+++b;System.out.println(a);}}

    A.第4行编译报错

    B.第5行编译报错

    C.编译成功,输出13

    D.编译成功,输出14


    参考答案:B

  • 第2题:

    能打印出一个双引号的语句是( )。

    A.System.out.println{""};

    B.System.out.println{"*"};

    C.System.OUt.println{¨/"};

    D.System.OUt.println(¨\¨"};


    正确答案:D
    D。【解析】双引号字符的输出应使用转义字符。

  • 第3题:

    try{if((newObject))(.equals((newObject()))){System.out.println(equal”);}else{System.out.println(notequal”);}}catch(Exceptione){System.out.println(exception”);}Whatistheresult?()

    A.equal

    B.notequal

    C.exception

    D.Compilationfails.


    参考答案:D

  • 第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.


    参考答案:C

  • 第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.


    参考答案:C

  • 第6题:

    能打印出-个双引号的语句是( )。

    A.System.out.println{"");

    B.System.out.println{"*");

    C.System.out.println{"/"};

    D.System.out.println{"\"");


    正确答案:D
    双引号字符的输出应使用转义字符。

  • 第7题:

    BDE报错时怎么办?


    正确答案:修复工具3和1,解决办法为首先安装BDEsetup.exe,不行再进行双击bde.reg的注册。

  • 第8题:

    阅读以下代码:  public class Test{  public static void main(){  System.out.println(“x=”+x);   } }  请问,代码运行的结果是?() 

    • A、 x
    • B、 x=x
    • C、 “x=”+5
    • D、 编译报错

    正确答案:D

  • 第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?()  

    • A、 a
    • B、 b
    • C、 c
    • D、 d
    • E、 Compilation fails.

    正确答案:C

  • 第10题:

    What is the difference between the CUoD and Utility Capacity On Demand?()

    • A、Utility allows for activation of resources by the hour. CUoD allows for permanent access to additional resources installed into the system.
    • B、Utility allows for permanent access to additional resources installed into the system. CuOD allows for activation of resources by the hour.
    • C、Utility allows for activation of resources by the minute. CUoD allows for permanent access to additional resources installed into the system.
    • D、Utility allows for a 30 day usage of additional resources installed into the system. CUoD allows for permanent access to additional resources installed into the system.

    正确答案:C

  • 第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?()  

    • A、 BD
    • B、 BCD
    • C、 BDE
    • D、 BCDE
    • E、 ABCDE
    • F、 Compilation fails.

    正确答案:C

  • 第12题:

    单选题
    执行以下代码后,下面哪些描述是正确的() 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()); } }
    A

    输出null

    B

    第10行编译报错

    C

    第11行编译报错

    D

    输出Jema


    正确答案: D
    解析: 暂无解析

  • 第13题:

    请阅读下列的程序publicclassExample01{publicstaticvoidmain(Stringargs){intnum=127;byteb=num;System、out、printIn(b);}}程序的运行结果是()。

    A、编译通过,执行报错

    B、编译报错

    C、以上选项均不正确

    D、编译通过,执行输出127


    参考答案:B

  • 第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


    参考答案:D

  • 第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”.


    参考答案:C

  • 第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.


    参考答案:D

  • 第17题:

    booleanbool=true;if(bool=false){System.out.println(“a”);}elseif(bool){System.out.println(“c”);}elseif(!bool){System.out.println(“c”);}else{System.out.println(“d”);}Whatistheresult?()

    A.a

    B.b

    C.c

    D.d

    E.Compilationfails.


    参考答案:C
    Firstofall,thesecondprintlnstatementshouldprintthecharacter‘b’insteadof‘c’.Also,theanswerisnotE.butC.Indeed,thefollowinglineisperfectlylegal:if‘(bool=false)’.TheboolvariablewillsimplytakethevalueoffalseandtheIFstatementwillbeevaluatedtofalse.Therefore,thecorrectanswerisC.

  • 第18题:

    以下代码的输出结果?public class Test{public static void main(String argv[]){String x="hello";change(x);System.out.println(x);}static void change(String m){m=m+2;}}

    A. hello

    B. hello2

    C. 编译报错

    D. 运行报错,不能将串与整数相加


    正确答案:A

  • 第19题:

    执行以下代码,输出结果的结果是? () public class Test{  public String[] ss = new String[5];    public static void main(String[] args){      System.out.println(ss[1]);  } } 

    • A、 null
    • B、 -1
    • C、 编译时出错
    • D、 运行时报错

    正确答案:C

  • 第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()); } }

    • A、输出null
    • B、第10行编译报错
    • C、第11行编译报错
    • D、输出Jema

    正确答案:C

  • 第21题:

    以下会产生编译错误的Java语句是()。

    • A、if(2==3)System.out.println("Hi");
    • B、if(2=3)System.out.println("Hi");
    • C、if(true)System.out.println("Hi");
    • D、if(2!=3)System.out.println("Hi");

    正确答案:B

  • 第22题:

    Which command is used by the system boot process to determine what resources are available to the system?()

    • A、diag
    • B、lscfg
    • C、mpcfg
    • D、cfgmgr

    正确答案:D

  • 第23题:

    单选题
    执行下面程序,输出的结果是?() public class Test{  public static void main(String[] args){  int a = 5;  double b = 8;  a = a++ + b;   System.out.println(a);  }  }
    A

     第4行编译报错

    B

     第5行编译报错

    C

     编译成功,输出13

    D

     编译成功,输出14


    正确答案: C
    解析: 暂无解析