Question: Consider the following code: ` ` ` File folder = new File ( folder 1 / folder 2 / folder 3 ) ;
Consider the following code:
File folder new Filefolderfolderfolder;
folder.mkdirs;
If folderl doesn't exists in the working directory, what will happen?
There is an IllegalAccessException.
There is an IOException.
There is a FileNotFoundException.
It will create folder and then folder under follder and then folder under folder
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
