Skip to main content

Optional Enhancements

Learn Optional Enhancements (Java 11 Features, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

1. Introduction Java 11 adds Optional.isEmpty , and Java 9 and 10 added orElseThrow() , or, ifPresentOrElse and stream .

More lessons in Java 11 Features