EPAM Systems interview question

Completely Core Java based quetions.