Java OCA OCP Practice Question 418

Question

What method of the java.io.File class can create a file on the hard drive?

  • A. newFile()
  • B. makeFile()
  • C. makeNewFile()
  • D. createFile()
  • E. createNewFile()


E.

Note

The createNewFile() method creates a new empty file.




PreviousNext

Related