Examlex

Solved

Consider the Following Code Snippet: Public Double[] ReadInputFile(String Filename) Throws

question 76

Multiple Choice

Consider the following code snippet: public double[] readInputFile(String filename) throws IOException
{
File inputFile = new File(filename) ;
Scanner in = new Scanner(inputFile) ;
Try
{
ReadData(in) ;
Return data;
}
Finally
{
InputFile.close() ;
}
}
Which of the following statements about this method's code is correct?


Definitions:

Related Questions