Zensar Technologies interview question

From Java 8 and from Java 11