instantiate optinal java 8 code example Example: instantiate optinal java 8 Person p = new Person(); Optional op = Optional.of(p);