We use the method createNewFile() of the java . This method creates a new file in Java. Its return type is boolean. It returns true if the file is created successfully, else false if the file with the given name already exists.
Is it possible to make a new file with a Java statement?
We use the method createNewFile() of the java . This method creates a new file in Java. Its return type is boolean. It returns true if the file is created successfully, else false if the file with the given name already exists.