try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}
Is this code create new file name a.txt ?
try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}try{ File f = new File("a.txt");}catch(Exception e){}catch(IOException io){}Is this code create new file name a.txt ? Correct Answer Compilation Error
IOException is unreachable to compiler because all exception is going to catch by Exception block.
মোঃ আরিফুল ইসলাম
Feb 20, 2025