Infosys interview question

Questions on Java 8.