Select an appropriate expression to complete the header for the method below. public void openFile(String inputFile) ______________________________
{
File theFile = new File(inputFile) ;
Scanner data = new Scanner(theFile) ;
// additional statements to input data from file
}
A) throw FileNotFoundException
B) throw new FileNotFoundException
C) throws FileNotFoundException
D) throws new FileNotFoundException
Correct Answer:
Verified
Q67: Consider the following code snippet: Scanner in
Q68: Consider the following code snippet: Scanner in
Q69: Consider the following code snippet: Scanner in
Q70: Which of the following statements about command
Q71: Consider the following code snippet: throw new
Q73: Consider the following code snippet. Scanner in
Q74: When you start a Java program from
Q75: You wish to use the Scanner class's
Q76: Select an expression to complete the program
Q77: Complete the code fragment below, which is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents