try { double c=matematicas.dividir(-1.6, 0); } catch (RuntimeException ex) { System.out.println("Falló al dividir"); }