[OCAJP][OCPJP] 程式區塊
What is the result? A. square ... B. circle ... C. square circle ... D. Compilation fails.
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
MagicLen 的主要文章,分成「科學與科技」和「社會與生活」兩大類。前者以程式設計、作業系統、網路與軟硬體的教學和心得為主,後者包含語言學習、創作、旅遊、開箱與各種生活主題,另外還有本站公告。
共 1660 篇文章
What is the result? A. square ... B. circle ... C. square circle ... D. Compilation fails.
What is the result? A. Result = 2 B. Result = 3 C. Result = 28 D. Result = 29 E. Result = 30
What will be the output? A. SpecialException: Thrown at end of doSomething() method B. Error in thread "main" java.lang.ArrayIndexOutOfBoundsError C. Exception in thread "main" java.lang.ArrayIndexOu...
What is the result? A. Unix Linux Solaris B. null Unix Linux Solaris C. Class java.lang.Exception D. Class java.lang.NullPointerException
Which code fragment, when inserted at line 14, enables the code to print Mike Found? A. int f = ps.indexOf{new Patient("Mike")}; B. int f = ps.indexOf(Patient("Mike")); C. Patient p = new Patient("Mi...
What is the result? A. 11, 11 B. 10, 10 C. 21, 11 D. 20, 20 E. 11, 12
How should you write methods in the ElectricAccount class at line n1 so that the member variable bill is always equal to the value of the member variable kwh multiplied by the member variable rate?
What is the result? A. Shining Sun Shining Sun Shining Sun B. Shining Sun Twinkling Star Shining Sun C. Compilation fails D. A ClassCastException is thrown at runtime
What is the result? A. Pass B. Fail C. Class MarketOutOfBoundsException D. Class IndexOutOfBoundsException E. Class Exception
Which code fragment, when inserted at line 2, enables the code to compile? A. import sales.*; B. import java.sales.products.*; C. import sales; import sales.products; D. import sales.*; import produc...