Question: mkdir how to use java?
Answer: File mkdir() method in Java with examples The mkdir() method is a part of File class. The mkdir() function is used to create a new directory denoted by the abstract pathname. The function returns true if directory is created else returns false. Parameters: This method do not accepts any parameter.