Look at the code below. What exceptions (if any) may be thrown in its two last lines?
File file = new File(pathToFile); // pathToFile is non null String variable
Scanner scanner = new Scanner(file);
String line = scanner.nextLine();Look at the code below. What exceptions (if any) may be thrown in its two last lines?
File file = new File(pathToFile); // pathToFile is non null String variable
Scanner scanner = new Scanner(file);
String line = scanner.nextLine();Create a free account to access the full topic