[OCAJP][OCPJP] 构造器的可视范围
What is the result? A. 100 210 B. Compilation fails due to an error in line n1 C. Compilation fails due to an error at line n2 D. Compilation fails due to an error at line n3
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
标签
Oracle Certified Associate Java SE Programmer (OCAJP).
共 230 篇文章
What is the result? A. 100 210 B. Compilation fails due to an error in line n1 C. Compilation fails due to an error at line n2 D. Compilation fails due to an error at line n3
Which code fragment, when inserted at line n1, enables the App class to print Equal? A. String str3 = str2; if (str1 == str3) B. if (str1.equalsIgnoreCase(str2)) C. String str3 = str2; if (str1.equal...
What is the result? A. 10 10 B. 8 9 C. 9 8 D. 7 10
Which three are advantages of the Java exception mechanism? A. Improves the program structure because the error handling code is separated from the normal program function B. Provides a set of standa...
What is the result? A. May 04, 2014T00:00:00.000 B. 2014-05-04T00:00:00.000 C. 5/4/14T00:00:00.000 D. An exception is thrown at runtime.
A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the results? A. Compilation fails. B. The third argument is given the value null. C. T...
What is the output? A. planets Earth 1 B. [LPlanets.Planet;@15db9742 Earth 1 C. [LPlanets.Planet;@15db9742 Planets.Planet@6d06d69c 1 D. [LPlanets.Planet;@15db9742 Planets.Planet@6d06d69c [LPlanets.Mo...
What is the result? A. 1525 B. 13 C. Compilation fails D. An exception is thrown at runtime E. The program fails to execute due to runtime error
Which two code fragments can be independently placed at line n1 to meet the requirements?
Assume that the system date is June 20, 2014. What is the result? A. date1 = 2014-06-20 date2 = 2014-06-20 date3 = 2014-06-20 B. date1 = 06/20/2014 date2 = 2014-06-20 date3 = Jun 20, 2014 C. Compilat...