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

What does this code print?

System.out.println(Stream.of(1,2,3).filter(i -> i<2).findFirst().orElse(0));