Oracle Java SE 11 Programmer I - 1Z0-815 Exam Practice Test
Given:

What is the result?

What is the result?
Correct Answer: D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given:

If file "App.config" is not found, what is the result?

If file "App.config" is not found, what is the result?
Correct Answer: D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
What is the result?
public class StringReplace {
public static void main(String[] args) {
String message = "Hi everyone!";
System.out.println("message = " + message.replace("e", "X")); } }
public class StringReplace {
public static void main(String[] args) {
String message = "Hi everyone!";
System.out.println("message = " + message.replace("e", "X")); } }
Correct Answer: B
Given:

Which three classes successfully override printOne()? (Choose three.)

Which three classes successfully override printOne()? (Choose three.)
Correct Answer: B,D,F
Given the code fragment:

What is the result?

What is the result?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given the formula to calculate a monthly mortgage payment:

and these declarations:

How can you code the formula?

and these declarations:

How can you code the formula?
Correct Answer: A
Which two statements are true about Java modules? (Choose two.)
Correct Answer: C,E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Given:

Which two methods modify field values? (Choose two.)

Which two methods modify field values? (Choose two.)
Correct Answer: A,C
Which statement will emoty the contents of a StringBuilder variable named sb?
Correct Answer: A
A method is declared to take three arguments.
A program calls this method and passes only two arguments.
What is the results?
A program calls this method and passes only two arguments.
What is the results?
Correct Answer: E