instantiate optinal java 8

Java
Person p = new Person();
Optional<Person> op = Optional.of(p); 
Source

Also in Java: