exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 210 discussion

Actual exam question from Oracle's 1z0-819
Question #: 210
Topic #: 1
[All 1z0-819 Questions]

Given:



and the code fragment:



Which two Map objects group all employees with a salary greater than 30 by neighborhood? (Choose two.)

  • A.
  • B.
  • C.
  • D.
  • E.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cathDev
3 months ago
Selected Answer: BD
Tested BD
upvoted 1 times
...
ASPushkin
6 months, 2 weeks ago
answer : B, D A - not correct Collectors.groupingBy(Function ... but here we have Collectors.groupingBy(Predicate C : not right static <T,K,A,D> Collector<T,?,Map<K,D>> groupingBy(Function<? super T,? extends K> classifier, Collector<? super T,A,D> downstream) So, downstream is a Collector We have : Employee::getNeighborhood() E: not correct it has syntax error at the end. both works - checked just one thing - roster.stream().collect() - doesn't work you should specify the Employee type like : Stream<Employee> s = roster.stream(); Map <Optional<String>, List <Employee>> r4 = s.collect(collector); remaining two are correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago