[OCAJP]StringBuilder 2
What is the output? A. 1Z0 B. 1Z0-808 C. An exception will be thrown. D. Compilation fails due to error at line 3. E. Compilation fails due to error at line 4.
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
MagicLen 的主要文章,分成「科学与科技」和「社会与生活」两大类。前者以编程、操作系统、网络与软硬件的教学和心得为主,后者包含语言学习、创作、旅游、开箱与各种生活主题,另外还有本站公告。
共 1660 篇文章
What is the output? A. 1Z0 B. 1Z0-808 C. An exception will be thrown. D. Compilation fails due to error at line 3. E. Compilation fails due to error at line 4.
What is the result? A. myStr: 9009, myNum: 9009 B. myStr: 7007, myNum: 7007 C. myStr: 7007, myNum: 9009 D. Compilation fails
Which code fragment, when inserted at line 9, enables the code to print true? A. String str2 = str1; B. String str2 = new String(str1); C. String str2 = sb1.toString(); D. String str2 = "Duke";
What is the result? A. Invalid Divisor Divisor Changed Successful Division 30 B. Invalid Divisor Successful Division 30 C. Invalid Divisor Exception in thread "main" java.lang.ArithmeticException: / ...
What is the result? A. 6 7 8 B. 7 8 9 C. 0 1 2 D. 6 8 10 E. Compilation fails
What is the result? A. true:true B. true:false C. false:true D. false:false
Which code fragment prints red:blue:small:medium:?
What is the result? A. C B A B. C C. A B C D. Compilation fails at line n1 and line n2
What is the result? A. Yellow Pink Red B. Cyan Blue Red C. Cyan Green Red D. Compilation Fails
What is the result? A. 0 Done B. First Exception Done C. Second Exception D. Done Third Exception E. Third Exception