Example Java Program With Exception Handling In Python