Question library
Questions from real interviews. Drill any of them by voice in a couple of minutes, with an interviewer, a score and feedback.
There's a list of orders, and each order has a customer name and an amount of type long. Write a method totalByCustomer that takes this list and, using the Stream API, returns a map of customer name to the total amount of their orders.JuniorHow does Stream API execution work under the hood, and when would you use a parallel stream and when wouldn't you?Senior