Given the code fragments:
4. void doStuff() throws ArithmeticException, NumberFormatException, Exception {
5. if (Math.random() >-1 throw new Exception ("Try again");
6. }
and
24. try {
25. doStuff ( ):
26. } catch (ArithmeticException | NumberFormatException | Exception e) {
27. System.out.println (e.getMessage()); }
28. catch (Exception e) {
29. System.out.println (e.getMessage()); }
30. }
Which modification enables the code to print Try again?
asdfjhfgjuaDCV
4 months, 4 weeks agosteefaand
5 months, 4 weeks agor1muka5
1 year, 5 months agoWilsonKKerll
2 years, 4 months agoWilsonKKerll
2 years, 5 months agomevlt
2 years, 4 months agobnagaraja9099
3 years, 3 months agopul26
3 years, 7 months agovarconite
3 years, 8 months agoluzeli25
3 years, 10 months agoInnovation
4 years, 6 months ago