Infosys Interview Question

I was applying for Java so based on java and oop.