Question: Consider the following code: ` ` ` File folder = new File ( folder 1 / folder 2 / folder 3 ) ;

Consider the following code:
```
File folder = new File("folder1/folder2/folder3");
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 folder1, and then folder2 under follder1, and then folder3 under folder2.
Consider the following code: ` ` ` File folder =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!