Black Friday Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: get65

Oracle Updated 1z0-809 Exam Questions and Answers by cece

Page: 7 / 7

Oracle 1z0-809 Exam Overview :

Exam Name: Java SE 8 Programmer II
Exam Code: 1z0-809 Dumps
Vendor: Oracle Certification: Java SE
Questions: 196 Q&A's Shared By: cece
Question 28

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 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(scr));

What is the result?

Options:

A.

A compilation error occurs.

B.

Java EEJava ME

C.

[Java EE: Helen:Houston][Java ME: Jessy:Chicago, Java ME: Mark:Chicago]

D.

[Java ME: Jessy:Chicago, Java ME: Mark:Chicago][Java EE: Helen:Houston]

Discussion
Question 29

Given the code fragment:

Questions 29

What is the result?

Options:

A.

5 : 3 : 6

B.

6 : 5 : 6

C.

3 : 3 : 4

D.

4 : 4 : 4

Discussion
Page: 7 / 7

1z0-809
PDF

$36.75  $104.99

1z0-809 Testing Engine

$43.75  $124.99

1z0-809 PDF + Testing Engine

$57.75  $164.99