[OCAJP] 字符与字符串的串接
What is result? A. Successful B. Unsuccessful C. Compilation fails D. An exception is thrown at runtime
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
MagicLen 的主要文章,分成「科学与科技」和「社会与生活」两大类。前者以编程、操作系统、网络与软硬件的教学和心得为主,后者包含语言学习、创作、旅游、开箱与各种生活主题,另外还有本站公告。
共 1660 篇文章
What is result? A. Successful B. Unsuccessful C. Compilation fails D. An exception is thrown at runtime
What should keyword1 and keyword2 be respectively, in oreder to produce output 2345? A. continue, break B. break, break C. break, continue D. continue, continue
What is the result? A. Java Java Java B. Java Jeve va C. Java Jeve ve D. Compilation fails
Which two items can legally be contained within a java class declaration? A. An import statement B. A field declaration C. A package declaration D. A method declaration
What is the result? A. 10 : 10 B. 5 : 5 C. 5 : 10 D. Compilation fails
What is the result? A. The sum is 2 B. The sum is 14 C. The sum is 15 D. The loop executes infinite times E. Compilation fails
Which code fragment can be inserted at line "//insert code here" to enable the code to compile?
What is the result? A. 3 4 5 6 B. 3 4 3 6 C. 5 4 5 6 D. 3 6 4 6
Which code fragment, when inserted at line 3, enables the code to print 10:20? A. int[] array = new int[2]; B. int[] array; array = int[2]; C. int array = new int[2]; D. int array [2] ;
What is the result? A. hEllO jAvA! B. Hello java! C. Out of limits hEllO jAvA! D. Out of limits