Unisys interview question

All about Java,OOPS concepts.