go to previous page   go to home page   go to next page

Answer:

java.io.


File Objects

A File object holds information about a disk file or a disk directory and methods to manipulate them. A File object is NOT the actual file. It does not contain the data that the file holds. It is an object that holds methods that affect a particular file or directory. It works as an interface between a program and the functions of the operating system that do the actual file manipulation.

Different operating systems organize their file systems in different ways. By using a File object, a Java program is isolated from the details of how the operating system handles files. The program can use File methods to manipulate files, and the File object handles the details.


QUESTION 2:

If a File object and a file are separate things, is it possible:


go to previous page   go to home page   go to next page