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
9 months, 4 weeks agosteefaand
10 months, 3 weeks agor1muka5
1 year, 10 months agoWilsonKKerll
2 years, 9 months agoWilsonKKerll
2 years, 10 months agomevlt
2 years, 9 months agobnagaraja9099
3 years, 8 months agopul26
4 years agovarconite
4 years agoluzeli25
4 years, 3 months agoInnovation
4 years, 11 months ago