Given the Greetings.properties file, containing:
and given:
What is the result?
Given that these files exist and are accessible:
and given the code fragment:
Which code fragment can be inserted at line n1 to enable the code to print only /company/emp?
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?