Estou com erro no último cath, porem não sei porque, alguem poderia me explicar porque ?
public class Teste2{
public static void criarArquivo() throws IOException {
File file = new File("C:/temp/arquivo1.txt");
System.out.println(file.createNewFile());
}
public static void main(String[] args) {
try {
criarArquivo();
System.out.println("Bloco try");
}catch(IOException e) {
System.out.println("Bloco IOException");
}catch(FileNotFoundException e) {
System.out.println("Bloco FileNotFoundException");
}
}
}