BlackRock interview question

Given a list of objects, use stream API to group objects based on place, after that convert the same code to SQL.

Interview Answer

Anonymous

19 Aug 2024

For Stream APIs, I used groupingBy, and SQL is pretty simple with the GROUP BY clause