[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