Multiple choice

The stream class 'File Input Stream' throws a/an ____ exception.

  1. IO

  2. File Not Found

  3. Class Not Found

  4. Interrupted

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

FileInputStream throws FileNotFoundException (a subclass of IOException) when attempting to open a file that doesn't exist. This is a checked exception that must be handled or declared when working with file input streams.