Cognizant interview question

Java exception handling with code