Oracle Java Foundations - 1z1-811 Exam Practice Test
Given the code fragment:

What is the output?

What is the output?
Correct Answer: C
Which statement is true about a Java method?
Correct Answer: D
Given the code fragment:

Which statement is true?

Which statement is true?
Correct Answer: C
Given the classes:

Which two modifications, independently, enable the Salad.java file to compile?

Which two modifications, independently, enable the Salad.java file to compile?
Correct Answer: B,C
Given:

Which statement, when inserted at line n1, enables the Course class to compile?

Which statement, when inserted at line n1, enables the Course class to compile?
Correct Answer: A
Which method identifier is correct according to Java naming conventions?
Correct Answer: D
Given the code fragment:

What is the result?

What is the result?
Correct Answer: B
Given the code fragment:

What is the result?

What is the result?
Correct Answer: A