1Z0-829 • Practice Exam 2 — 20 Questions
Free 1Z0-829 practice exam 2 — 20 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?