Virtusa interview question

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