In JAVA , we can work with files.This file class is inside the java .io.package.The file class can be used by creating an object of the class and then specifying the name of the file .
In simple words, file handling means reading and writing data to a file.
For ex:
import java.io.File;
public class Learner{
public static void main(String[]args){
File obj=new File("filenme.text");
System.out.println("File created");
}
}