1Z0-829 • Practice Test 3 — 10 Questions
Free 1Z0-829 practice test 3 — 10 questions with explanations. No signup required.
A developer is designing a method that processes a stream of Employee objects. The method needs to group employees by department and then, within each department, sort by salary in descending order, and collect the top 3 highest-paid employees per department into a list. Which approach correctly accomplishes this using streams?