Infosys interview question

Core java try catch interface