Online Access Free 1z0-809 Practice Test

Exam Code:1z0-809
Exam Name:Java SE 8 Programmer II
Certification Provider:Oracle
Free Question Number:209
Posted:Sep 01, 2026
Rating
100%

Question 1

Given:
class Student {
String course, name, city;
public Student (String name, String course, String city) {
this.course = course; this.name = name; this.city = city;
}
public String toString() {
return course + ":" + name + ":" + city;
}
public String getCourse() {return course;}
public String getName() {return name;}
public String getCity() {return city;}
and the code fragment:
List<Student> stds = Arrays.asList(
new Student ("Jessy", "Java ME", "Chicago"),
new Student ("Helen", "Java EE", "Houston"),
new Student ("Mark", "Java ME", "Chicago"));
stds.stream()
.collect(Collectors.groupingBy(Student::getCourse))
.forEach(src, res) -> System.out.println(res));
What is the result?

Question 2

Which statement is true about the single abstract method of the java.util.function.Function interface?

Question 3

Given the code fragment:
Path file = Paths.get ("courses.txt");
// line n1
Assume the courses.txt is accessible.
Which code fragment can be inserted at line n1 to enable the code to print the content of the courses.txt file?

Question 4

Given the code fragment:

Which code fragment, when inserted at line n1, enables the code to print /First.txt?

Question 5

Given:

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.