Examlex

Solved

Consider the Following Code Snippet

question 11

Multiple Choice

Consider the following code snippet.
File hoursFile = new File("hoursWorked.txt") ;
Your program must read the contents of this file using a Scanner object.Which of the following is the correct syntax for doing this?


Definitions:

Related Questions