Infosys interview question

Java advantages difference Java 8 and Java 11