try { double c=matematicas.dividir(-1.6, 0); } catch (RuntimeException ex) { ex.printStackTrace(); }