Apexon interview question

Core java questions based on java 8 and strings