QuestionQ77
Handling ExceptionsGiven the following code fragment:

Which two changes should be made so that the code compiles successfully?
Choose two
- A

- B Replace line 7 with throw IOException (ג€Exception raisedג€);
- C Replace line 11 with public static void main(String[]) args) throws Exception {
- D At line 14, insert throw new IOException();
- E Replace line 5 with public void printFileContent() throws IOException {
Community Discussion