Given: What is the expected result of javac?

A. javac fails to compile the class and prints the error message, C:\workspace4\Mycar.java:1:error: package java does not exist
B. javac compiles Mycar.java without errors or warnings.
C. javac fails to compile the class and prints the error message, C:\workspace4\Mycar.java:1:error: expected import java.lang
D. javac fails to compile the class and prints the error message, Error: Could not find or load main class Mycar.class
Given the code fragment:

What is the result?
A. ab cd ef
B. An ArrayIndexOutOfBoundsException is thrown at runtime.
C. The compilation fails.
D. abc def
E. ad be cf
Given:

Which two constructors will compile and set the class field strings? (Choose two.)

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Given:

What is the result?
A. watermelon orange lemon grape apricot apple
B. nothing
C. apple apricot grape lemon orange watermelon
D. apple orange grape lemon apricot watermelon
Given:

Which two statements can be added at line 1 in Bar to successfully compile it? (Choose two.)
A. public List
B. public ArrayList
C. public List
D. public List
E. public List
F. public ArrayList
Given the formula to calculate a monthly mortgage payment:

and these declarations:

How can you code the formula?
A. m = p * (r * Math.pow(1 + r, n) / (Math.pow(1 + r, n) - 1));
B. m = p * ((r * Math.pow(1 + r, n) / (Math.pow(1 + r, n)) - 1)); r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1;
C. m = p * D. m = p * (r * Math.pow(1 + r, n) / Math.pow(1 + r, n) - 1);
Given:

Why does D cause a compilation error?
A. D inherits a() only from C.
B. D inherits a() from B and C but the return types are incompatible.
C. D extends more than one interface.
D. D does not define any method.
Given:

What is the result?
A. Map: 0 Keys: 0 Values: 0
B. The compilation fails.
C. Map: 4 Keys: 4 Values: 4
D. Map: 4 Keys: 0 Values: 0
E. Map: 0 Keys: 4 Values: 4
Given:

Which statement is true about the Fox class?
A. Fox class does not have to override inhabit method, so long as it does not try to call it.
B. Fox class does not have to override the inhabit method if Forest and Town provide compatible implementations.
C. Fox class must implement either Forest or Town interfaces, but not both.
D. The inhabit method implementation from the first interface that Fox implements will take precedence.
E. Fox class must provide implementation for the inhabit method.