Is there an exception?

Report a typo

What exception may occur here that we won't be able to catch while executing the code?

try {
    Scanner(File("file.txt")).use { scanner ->
        val number = scanner.nextInt()
        println(number * 100)
    }
} catch (e: FileNotFoundException) {
    e.printStackTrace()
} finally {
    println("Finally part")
}

If you think that there is no such exception, write "0".

Otherwise, write the name of the exception without packages.

Enter a short text
___

Create a free account to access the full topic