EPAM Systems interview question

About the topics as mentioned in description. Gave one little code using lambda expression to find the problem. Then gave another code & asked to reduce its number of lines to one line using jdk8 feature.

Interview Answers

Anonymous

2 Jun 2022

For code reduction problem, he was expecting me to suggest Optional, which I suggested initially but in the end I said that I will never suggest to use Optional here to sacrifice the readability of the code, just to shorten the code. Which I think, he didn't like.

Anonymous

2 Jun 2022

This interviewer was expecting me to say 'Optional', which I even said in the start but by the end I suggested not to use Optional here just to reduce the code size & sacrificing the code readability. And that thing also didn't go well. As many kids just mug-up something from internet & start iterating the same everywhere to show their pseudo intelligence & thinking everyone around is fool.