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

Aug 19, 2024

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

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. | Glassdoor