In Java, a File object (created from the File class—part of the java.io package) can represent files that already exist, or files you want to create. code example
Example: java file class
import java.io.File;
import java.io.File;