Virtusa Interview Question

Fully based on Java like what is over riding, encapsulation and all