}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
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|