SCJP Certification

Sun Certified Java Programmer Certification exam essentials

December 12th, 2009

What is the createNewFile() method of the File class?

Java Questions, by Daisy Williams.

The createNewFile() method of the File class is used to create a new empty file if a file with the given name does not already exist. It returns true if a file with the given name does not exist and is successfully created; otherwise, it returns false.

Share

Back Top

Responses to “What is the createNewFile() method of the File class?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

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

*