报错:Out of system resources怎么办?

题目

报错: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


参考答案:C

第2题:

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

A.第4行编译报错

B.第5行编译报错

C.编译成功,输出13

D.编译成功,输出14


参考答案:B

第3题:

执行以下代码,输出结果的结果是?()publicclassTest{publicString[]ss=newString[5];publicstaticvoidmain(String[]args){System.out.println(ss[1]);}}

A.null

B.-1

C.编译时出错

D.运行时报错


参考答案:C

第4题:

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

第5题:

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

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

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

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

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


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

第6题:

下面程序的输出结果是()publicclassTest{publicstaticvoidmain(String[]args){Strings=abcdsfghi”;String[]arr=s.split(\s”);System.out.println(arr.length);}}

A.编译报错

B.2

C.1

D.3


参考答案:A

第7题:

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

A、编译通过,执行报错

B、编译报错

C、以上选项均不正确

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


参考答案:B

第8题:

阅读以下代码:publicclassTest{publicstaticvoidmain(){System.out.println(x=”+x);}}请问,代码运行的结果是?()

A.x

B.x=x

C.“x=”+5

D.编译报错


参考答案: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


参考答案:D

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


参考答案:C

更多相关问题