Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavastream pipelinesSingle-choice MCQ

Given the snippet, what value is produced?

int s = Stream.of(1,2,3).reduce(0, Integer::sum);