
Which two statements are true about the modular JDK? (Choose two.)
A. The foundational APIs of the Java SE Platform are found in the java.base module.
B. An application must be structured as modules in order to run on the modular JDK.
C. It is possible but undesirable to configure modules' exports from the command line.
D. APIs are deprecated more aggressively because the JDK has been modularized.
Given:

executed using this command: java Myclass My Car is red What is the output of this class?
A. Car--red--My
B. My--Car--is
C. My--is--java
D. java--Myclass--My
E. Myclass--Car--red
Which describes a characteristic of setting up the Java development environment?
A. Setting up the Java development environment requires that you also install the JRE.
B. The Java development environment is set up for all operating systems by default.
C. You set up the Java development environment for a specific operating system when you install the JDK.
D. Setting up the Java development environment occurs when you install an IDE before the JDK.
Given: What is the result?

A. [0,0] = Red [0,1] = White [1,0] = Black [1,1] = Blue [2,0] = Yellow [2,1] = Green [3,0] = Violet
B. [0,0] = Red [1,0] = Black [2,0] = Blue
C. java.lang.ArrayIndexOutOfBoundsException thrown
D. [0,0] = Red [0,1] = White [1,0] = Black [2,0] = Blue [2,1] = Yellow [2,2] = Green [2,3] = Violet
Given: What is the result?

A. Working Unknown
B. Unknown
C. Tuesday Unknown
D. The compilation fails.
E. Tuesday
F. Working
Given:

What is the result?
A. b1
B. 2
C. b2
D. 1
E. b3
F. 3
G. The compilation fails due to an error in line 1.
Given:

What is the result?
A. null
B. Joe Bloggs
C. The compilation fails due to an error in line 1.
D. p1
Given: What is the result?

A. Good Morning, Potter
B. Good Night, Potter
C. Good Morning, Harry
D. Good Night, Harry
What makes Java dynamic?
A. At runtime, classes are loaded as needed, and new code modules can be loaded on demand.
B. The runtime can process machine language sources as well as executables from different language compilers.
C. The Java compiler uses reflection to test if class methods are supported by resources of a target platform.
D. The Java compiler preprocesses classes to run on specific target platforms.