[OCAJP]do-while 的用法
What is the result? A. 5 4 3 2 1 0 B. 5 4 3 2 1 C. 4 2 1 D. 5 E. Nothing is printed
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
MagicLen 的主要文章,分成「科學與科技」和「社會與生活」兩大類。前者以程式設計、作業系統、網路與軟硬體的教學和心得為主,後者包含語言學習、創作、旅遊、開箱與各種生活主題,另外還有本站公告。
共 1660 篇文章
What is the result? A. 5 4 3 2 1 0 B. 5 4 3 2 1 C. 4 2 1 D. 5 E. Nothing is printed
What is the output? A. 4 4 B. 3 5 C. 4 7 D. 5 4 E. 4 5 F. 4 21
Which code fragment cause a compilation error? A. float flt = 100F; B. float flt = (float) 1_11.00; C. float flt = 100; D. double y1 = 203.22; float flt = y1 E. int y2 = 100; float flt = (float) y2;
Which is true about the above statement? A. The value of the variable number will be 808.1 B. The value of the variable number will be 808 C. The value of the variable number will be 0. D. A NumberFo...
Which statement will empty the contents of a StringBuilder variable named sb? A. sb.deleteAll(); B. sb.delete(0, sb.size()); C. sb.delete(0, sb.length()); D. sb.removeAll();
Which of the following exception will be thrown due to the statement given here? int array[] = new int[-2]; A. NullPointerException B. NegativeArraySizeException C. ArrayIndexOutOfBoundsException D....
Which statement is true? A. Both p and s are accessible by obj. B. Only s is accessible by obj. C. Both r and s are accessible by obj. D. p, r, and s are accessible by obj.
What is the result? A. 5 : 5 B. 6 : 4 C. 6 : 5 D. 5 : 4
What is the result? A. log3:false log4:true B. log3:true log4:true C. log3:true log4:false D. log3:false log4:false
Which line of codes prints the highest number? A. Line 21 B. Line 22 C. Line 23 D. Line 24 E. Line 25