Talk is cheap. Show me the code.
Problem : https://www.hackerrank.com/challenges/java-exception-handling/problem
Solution :
Problem : https://www.hackerrank.com/challenges/java-exception-handling-try-catch/problem