Skip to main content
๐Ÿ› Bug HuntJV Java Hardโšก+35 XP

Checked Exception Unhandled

This code won't compile.

๐Ÿ› Find the bug
1public void readFile() {
2 FileReader f = new FileReader("data.txt");
3}
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix: