}catch(Exception e){}
SCJP 5.0
SCJP, SCWCD, SCBCD
Originally posted by lalitha kaparapu:
I am sorry I am taking about "file1.txt"If the catch block is catching that exception Why again the file "file1.txt" is renamed to null.If there is an exception Y should it be renamed??
Originally posted by lalitha kaparapu:
I am sorry I am taking about "file1.txt"If the catch block is catching that exception Why again the file "file1.txt" is renamed to null.If there is an exception Y should it be renamed??
SCJP 5.0
Originally posted by lalitha kaparapu:
Yes I tried that code without the catch clause and I got the exception now..Thanks A lot!!!
SCJP, SCWCD, SCBCD
SCJP, SCWCD, SCBCD
a) "directory" is created.
b) file1.txt does not exists under "directory"
c) A new file is created under current folder outside "directory".
3) Now run the same code again the output is false, true, false and the file1.txt is now visible and created under "directory"
SCJP, SCWCD, SCBCD
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|