
Oracle Java Foundations - 1z0-811 Exam Questions
QUESTION NO: 1
Given:

Which statement is true about the main method?
Given:

Which statement is true about the main method?
Correct Answer: D
QUESTION NO: 2
Identify two class variables.
Identify two class variables.
Correct Answer: A,E
QUESTION NO: 3
Which statement is true about exception handling?
Which statement is true about exception handling?
Correct Answer: A
QUESTION NO: 4
Given the contents of Student.java:

Which statement is true?
Given the contents of Student.java:

Which statement is true?
Correct Answer: D
QUESTION NO: 5
Given the code fragment:

What is the result?
Given the code fragment:

What is the result?
Correct Answer: D
QUESTION NO: 6
Given:

What is the result?
Given:

What is the result?
Correct Answer: C
QUESTION NO: 7
Which statement is true about a mutator method?
Which statement is true about a mutator method?
Correct Answer: B
QUESTION NO: 8
Given the code:

Which code fragment, when inserted at line n1, enables the code to print sum is 30?
Given the code:

Which code fragment, when inserted at line n1, enables the code to print sum is 30?
Correct Answer: B




