Question 31
Which stream operation in Java 8 is used to flatten a stream of collections (e.g. Stream<List<String>>) into a single un-nested stream (Stream<String>)?
Option C is correct. flatMap() applies a 1-to-N mapping function to each element and flattens the resulting streams into a single composite output stream.