[OCAJP]StringBuilder 物件與字串的相等
What is the result? A. Match 1 B. Match 2 C. No Match D. A NullPointerException is thrown at runtime.
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
MagicLen 的主要文章,分成「科學與科技」和「社會與生活」兩大類。前者以程式設計、作業系統、網路與軟硬體的教學和心得為主,後者包含語言學習、創作、旅遊、開箱與各種生活主題,另外還有本站公告。
共 1660 篇文章
What is the result? A. Match 1 B. Match 2 C. No Match D. A NullPointerException is thrown at runtime.
Which two code fragments, independently, print each element in this array? A. for (int i : intArr) { System.out.print(intArr[i] + " "); } B. for (int i : intArr) { System.out.print(i + " "); ...
Which of the following can fill in the blank in this code to make it compile? (Select 2 options.) A. On line 1, fill in throws B. On line 1, fill in throws new C. On line 2, fill in throw new D. On l...
What is the result? A. Super Sub Sub B. Contract Contract Super C. Compilation fails at line n1 D. Compilation fails at line n2
What is the result? A. 1:2:3:4:5: B. 1:2:3: C. Compilation fails. D. An ArrayoutofBoundsException is thrown at runtime.
Which change enables the code to print the following? James age: 20 Williams age: 32
What is the result? A. box B. nbo C. bo D. nb E. An exception is thrown at runtime
What is the result? A. [Robb, Rick, Bran] B. [Robb, Rick] C. [Robb, Bran, Rick, Bran] D. An exception is thrown at runtime.
What is the result? A. -6 B. -4 C. -5 D. 5 E. 4 F. Compilation fails
Which statement is/are true? I. Default constructor only contains "super();" call. II. We can't use any access modifier with a constructor. III. A constructor should not have a return type. A. Only ...