D, a compile error occurs.
if we change "Stream<String> nInSt = iStr.flatMapToInt((x) -> x.stream ());"
to "Stream<String> nInSt = iStr.flatMap((x) -> x.stream ());"
then the output is 1John2null
Compilation error: incompatible types: bad return type in lambda expression
Stream<String> nInSt = iStr.flatMapToInt((x) -> x.stream());
^
Stream<String> cannot be converted to IntStream
This section is not available anymore. Please use the main Exam Page.1z0-809 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Innovation
Highly Voted 4 years, 10 months agoasdfjhfgjuaDCV
Most Recent 8 months, 1 week agosteefaand
9 months, 1 week agoShad657
1 year, 3 months agor1muka5
1 year, 8 months agoYasinGaber
2 years, 9 months agoM_Jawad
4 years, 10 months ago