Online Access Free 1Z1-816 Practice Test

Exam Code:1Z1-816
Exam Name:Java SE 11 Programmer II
Certification Provider:Oracle
Free Question Number:80
Posted:Jun 02, 2026
Rating
100%

Question 1

Given:

Which two independent changes will make the Main class compile? (Choose two.)

Question 2

Given the Person class with age and name along with getter and setter methods, and this code fragment:

What will be the result?

Question 3

Given:
var fruits = List.of("apple", "orange", "banana", "lemon");
You want to examine the first element that contains the character n. Which statement will accomplish this?

Question 4

Given:

Which is true?

Question 5

Given the code fragment:
Path currentFile = Paths.get("/scratch/exam/temp.txt");
Path outputFile = Paths get("/scratch/exam/new.txt");
Path directory = Paths.get("/scratch/");
Files.copy(currentFile, outputFile);
Files.copy(outputFile, directory);
Files.delete (outputFile);
The /scratch/exam/temp.txt file exists. The /scratch/exam/new.txt and /scratch/new.txt files do not exist.
What is the result?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.