Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaOptional patternsSingle-choice MCQ

What is the output?

System.out.println(Optional.of(1).orElseThrow());