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 |
Given the Person class with age and name along with getter and setter methods, and this code fragment:
What will be the result?
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?
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?

