Which code fragment inserted at line ***, enables the code to compile?

Given the code fragment: Which code fragment inserted at line ***, enables the code to
compile?

Given the code fragment: Which code fragment inserted at line ***, enables the code to
compile?

A.
public void process () throws FileNotFoundException, IOException { super.process ();
while ((record = br.readLine()) !=null) { System.out.println(record); }}

B.
public void process () throws IOException { super.process (); while ((record =
br.readLine()) != null) { System.out.println(record); }}

C.
public void process () throws Exception { super.process (); while ((record = br.readLine())
!=null) { System.out.println(record); }}

D.
public void process (){ try { super.process (); while ((record = br.readLine()) !=null) {
System.out.println(record); } } catch (IOException | FileNotFoundException e) { } }

E.
public void process (){ try { super.process (); while ((record = br.readLine()) !=null) {
System.out.println(record); } } catch (IOException e) {} }



Leave a Reply 1

Your email address will not be published. Required fields are marked *