[OCAJP][OCPJP]foreach 的计次变量(?)
What is the result? A. 6 7 8 B. 7 8 9 C. 0 1 2 D. 6 8 10 E. Compilation fails
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
标签
Oracle Certified Professional Java SE Programmer (OCPJP).
共 128 篇文章
What is the result? A. 6 7 8 B. 7 8 9 C. 0 1 2 D. 6 8 10 E. Compilation fails
What is the result? A. 0 Done B. First Exception Done C. Second Exception D. Done Third Exception E. Third Exception
Which code fragments, inserted independently, enable the code compile? A. t.fvar = 200; B. cvar = 400; C. fvar = 200; cvar = 400; D. this.fvar = 200; this.cvar = 400; E. t.fvar = 200; Test2.cvar = 40...
Which two items are fields? A. j B. k C. x D. y E. z
Which line causes a compilation error? A. Line n1 B. Line n2 C. Line n3 D. Line n4
What is the result? A. 2 4 6 8 B. 2 4 6 8 9 C. 1 3 5 7 D. 1 3 5 7 9
What is printed out when the program is excuted? A. one B. two C. three D. four
Which two statements are true for a two-dimensional array of primitive data type? A. It cannot contain elements of different types. B. The length of each dimension must be the same. C. At the declara...
Which three code fragments, when replaced individually for foo, enables the program to compile? A. int i : array B. int i = 0; i < 1; C. ; ; D. ; i < 1; i++ E. i = 0; i<1;
What is the result? A. square ... B. circle ... C. square circle ... D. Compilation fails.