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.
Download free practice test for SUN SCJP 5/6 exam. Pass SCJP 6.0 in first attampt.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
