To avoid an exception with files, you can use a try. . .catch block and include
which exception class in your catch clause?
a. File.ExistsException
b. IOException
c. FileException
d. ExceptionFile
e. none of the above
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.