Capgemini Engineering interview question

Java oops concepts , and other Java thing