1Z0-829 • Practice Test 3
Free 1Z0-829 practice test — 10 questions with explanations. Set 3. 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?