In Java, file handling refers to both reading from and writing to a file. We can operate with several file types thanks to the Java.io package’s File class. The filename or directory name must be specified when creating an object of the File class in order to use it. obj.File = new File(“filename).
Vishalini.R Answered question September 7, 2023