The program below does not compile. Which statement correctly describes the problem?
import java.nio.file.Files;
import java.nio.file.Path;
public class Main {
public static void main(String[] args) {
String config = Files.readString(Path.of("app.properties"));
System.out.println(config.length());
}
}
javac: "unreported exception IOException; must be caught or declared to be thrown".