• Tutorials
  • Courses
  • Tracks
Switch to Dark Mode

What happens if FileInputStream is given a non-existent file?

Last Updated : Apr 4, 2025
Discuss
Comments

What happens if FileInputStream is given a non-existent file?

A

Returns null

B

Creates a new file

C

Throws FileNotFoundException

D

Ignores the error

Share your thoughts in the comments