What is the difference between `mkdir()` and `mkdirs()` in Java?
`mkdirs()` is used to create multiple directories in a chain, while `mkdir()` is used only for one directory at a time.
You're on the right track. `mkdirs()` can indeed create multiple directories, but itâ€™s specifically for creating nonexistent parent directories too.
What happens if you try to create a directory using `mkdir()` on an existing directory?