exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 86 discussion

Actual exam question from Oracle's 1z0-819
Question #: 86
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: A 🗳️

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
ASPushkin
5 months, 4 weeks ago
Selected Answer: C
same as 210 answer: A, C
upvoted 1 times
ASPushkin
5 months, 3 weeks ago
tested D uses function f() with Optional but left site uses directly String - not compiled
upvoted 1 times
...
...
mendjijet
10 months, 3 weeks ago
Selected Answer: D
Correct are A and D Tested C and E does not compile because their provide a Map<String, List<Employee>> not Map<Optional<String>, List<employee>> B is not correct
upvoted 1 times
...
Samps
1 year ago
correct answers are A and C
upvoted 2 times
...
dilleman
1 year, 2 months ago
If you think about it this makes sence without knowing too much about the exact syntax. A: We use the function f to group and the predicate p to filter. This is correct. B: We use the predicate p both to filter and group. This does not compile since groping does not take a predicate. C: We use the getNeighborhood-method to group and the predicate to filter. This is correct. D: We correctly use the predicate to filter but use both the function and the getNeighborhood to group and this method is already defined in the function. This does not look correct with double grouping on that method. E: This is a copy of C but with extra parentheses in the end and this does not compile.
upvoted 4 times
RoxyFoxy
1 year, 2 months ago
Your explanation is brilliant! Thank you, dilleman!
upvoted 1 times
...
...
[Removed]
1 year, 3 months ago
Selected Answer: A
Tested, A and C.
upvoted 1 times
...
Omnisumem
1 year, 3 months ago
And maybe C - if we need two correct answers...
upvoted 1 times
...
Omnisumem
1 year, 3 months ago
Selected Answer: A
Tested: A.
upvoted 1 times
...
[Removed]
1 year, 4 months ago
A & B are correct
upvoted 1 times
...
tmuralimanohar
1 year, 6 months ago
Answer: C
upvoted 1 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