Java Program Based On Exception Handling In Cpp