package es;
import java.io.*;
public class Writer1 {
public static void main(String[] args) {
try{
File f = new File("file.txt");
System.out.println(f.exists());
}catch(IOException e){}
}
}
pq esse codigo nao compila?
[ir]Exception in thread “main” java.lang.Error: Unresolved compilation problem:
Unreachable catch block for IOException. This exception is never thrown from the try statement body
[/i]
nao conseguir entender!!