Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 63 of 84
 
Marks: +1, -0

4.class X {
5.  public void printFileContent () {
6.    /* code goes here */
7.    throw new IOException ();
8.  }
9.}
10.public class Test {.
11.  public static void main (String [] args) {
12.    X xobj = new X ();
13.    xobj.printFileContent ();
14.  }
15.}

Which two modifications should you make so that the code compiles successfully?
Go to Question: