Infosys interview question

Java basics, Java 8 concepts, Java 11