Computer Science for IGCSE & O level - Programming (Section 13 - No. 2)

What does the `import java.io.File` statement do in Java?
Imports the file class
Opens a file
Creates a new file
Writes to a file

Explanation

The import statement makes the 'File' class available for use in the program

Comments (0)

Advertisement