Question: When working with a Stream , which of these types can be returned from the collect() terminal operator by passing arguments to Collectors.groupingBy()? A. Only
When working with a Stream
A. Only Map
B. Only Map
C. Both Map
D. Only List
E. Only List
F. Both List
Step by Step Solution
3.40 Rating (150 Votes )
There are 3 Steps involved in it
The correct answer is C Both Map and Map Indeed the CollectorsgroupingBy function is a collector tha... View full answer
Get step-by-step solutions from verified subject matter experts
