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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Leave a Reply

Your email address will not be published. Required fields are marked *