Cognizant Interview Question

Java exception handling with code