Example Java Program With Exception Handling In Javascript