New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Oracle Java SE 11 Developer 1z0-819 Question # 47 Topic 5 Discussion

Oracle Java SE 11 Developer 1z0-819 Question # 47 Topic 5 Discussion

1z0-819 Exam Topic 5 Question 47 Discussion:
Question #: 47
Topic #: 5

Given:

1z0-819 Question 47

and:

1z0-819 Question 47

Which code, when inserted on line 10, prints the number of unique localities from the roster list?


A.

.map(Employee::getLocality)

.distinct()

.count();


B.

map(e −> e.getLocality())

.count();


C.

.map(e −> e.getLocality())

.collect(Collectors.toSet())

.count();


D.

.filter(Employee::getLocality)

.distinct()

.count();


Get Premium 1z0-819 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.