What is the result?
Given the contents of the Test.java file: What is the result? A. 200 : 400 B. A compilation error occurs at line n1. C. A compilation error occurs at line n2. D. 100 : 400
Given the contents of the Test.java file: What is the result? A. 200 : 400 B. A compilation error occurs at line n1. C. A compilation error occurs at line n2. D. 100 : 400
Given: What is the result? A. The program compiles and nothing is printed. B. Iteration plus an increasing number is printed 100 times. C. Iteration plus an increasing number is printed 99 times. D. An error occurs during compilation.
Given: What is the output? A. 1 2 3 aaaa B. 1 2 aaa C. Compilation fails D. a
Which two components can class declarations include? A. A list of instance methods B. The main method C. Interfaces implemented by the class D. The public modifier
Which package would you import to use the Random class? A. java.io B. java.math C. java.util D. java.lang
Given the code fragment: What is the result? A. A compilation error occurs at line n1. B. Jack C. The program prints either Jack or Queen. D. Queen
Given the code fragment: What is the result? A. a memory address1 in hexadecimal number format a memory address2 in hexadecimal number format B. 10, 15 [10, 15] C. 0, 10, 15 [10, 15, null] D. a memory address in…
Given the code fragment: What is the output? A. 8 B. 3 C. 0 D. A compilation error occurs.
Given the code fragment: What is the result? A. lotus jasmine B. lotus C. A compilation error occurs. D. lotus lily
Given the code fragment: What is the result? A. false true B. true true C. false false D. A runtime exception is thrown