LTM Limited interview question

Question abjure Oops java program