题目内容

A:May I know who's calling? B:Yes,you can I'm Xiaoyan()

查看答案
更多问题

You've misspelled this word again.You'd better look it up ()

The problem is causing by manager's mistake()

publicclassTest{publicstaticvoidreplaceJ(stringtext){text.replace(‘j’,‘l’);}publicstaticvoidmain(Stringargs[]){stringtext=newString(java”)replaceJ(text);system.out.printIn(text);}}Whatistheresult?()

A. Theprogramprints“lava”
B. Theprogramprints“java”
C. Anerroratline7causescompilationtofail.
D. Compilationsucceedsbuttheprogramthrowsanexception.

intI=1,j=02.3.switch(i){4.case2:5.j+=6;6.7.case4:8.j+=1;9.10.default:11.j+=2;12.13.case0:14.j+=4;15.}16.Whatisthevalueofjatline16?()

A. 0
B. 1
C. 2
D. 4
E. 6

答案查题题库