Java object-oriented programming experiment four exception handling