EY interview question

Superficial questions about Java and OOP