MagicLen

分类

Java - 第 25 页

Java 编程语言的教学与范例,包含语法观念、算法实作与桌面程序开发,并收录大量 Java 认证考试(OCAJP、OCPJP)的题目解析。

共 403 篇文章

[OCAJP] 类别的结构

Which three statements are true about the structure of a Java class? A. A class can have only one private constructor. B. A method can have the same name as a field. C. A class can have overloaded st...

[OCAJP] 输出 54321

Which modification enables the code to print 54321? A. Replace line 6 with System.out.print(--x); B. At line 7, insert x--; C. Replace line 6 with --x; and, at line 7, insert System.out.print(x); D. ...

[OCAJP] 方法的实作

Which method can be inserted at line // insert code here to enable the code to compile? A. public int[] subArray(int[] src, int start, int end) { return src; } B. public int subArray(int src, in...