Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JAVA multiple choice: 16.)What will be the result of the following statements? a

ID: 3885551 • Letter: J

Question

JAVA multiple choice:

16.)What will be the result of the following statements?

a.)The inFile variable will reference an object that is able to read random access data from the Input.dat file.

b.)The inFile variable will reference an object that is able to read only text data from the Input.dat file.

c.)The inFile variable will reference an object that is able to read binary data from the Input.dat file.

d.)The inFile variable will reference an object that is able to write binary data to the Input.dat file.

17.)Unchecked exceptions are those that inherit from:

a.)the Exception Class or the RuntimeException class

b.)only the Error class

c.)the Error class or the Exception class

d.)the Error class or the RuntimeException class

18.)A(n) ________ is an object that is generated in memory as the result of an error or an unexpected event.

a.)exception

b.)error message

c.)default exception handler

d.)exception handler

a.)the Exception Class or the RuntimeException class

b.)only the Error class

c.)the Error class or the Exception class

d.)the Error class or the RuntimeException class

18.)A(n) ________ is an object that is generated in memory as the result of an error or an unexpected event.

a.)exception

b.)error message

c.)default exception handler

d.)exception handler

FileInputStream fstream- new FileInputStream("DataIn.dat") DataInput Stream inF i le = new DataInputStream (fstream)

Explanation / Answer

16.)What will be the result of the following statements?

Answer: c) c.)The inFile variable will reference an object that is able to read binary data from the Input.dat file.

17.)Unchecked exceptions are those that inherit from:

Answer: d.)the Error class or the RuntimeException class

18.)A(n) ________ is an object that is generated in memory as the result of an error or an unexpected event.

Answer: a.)exception