Question: how to create multiple folders at once in java?
Answer:  The directory to be created, exists or not. It can be checked using the exists() method.  If the above condition return false, the method mkdir() is called in order to create single directory.  If the above condition return false, the method mkdirs() is called in order to create multiple directories.