What is the purpose of the File classCore Java Interview Questions The File class is used to create objects that provide access to the files and directories of a local file system Total Views: 38,313