Infosys interview question

oops concepts exception handling jvm