ITC Infotech interview question

Java exception handling, rest api