File
Class File
- java.lang.Object
-
- java.io.File
- All Implemented Interfaces:
- Serializable, Comparable<File>
public class File extends Object implements Serializable, Comparable<File>
An abstract representation of file and directory pathnames.
User interfaces and operating systems use system-dependent pathname strings to name files and directories. This class presents an abstract, system-independent view of hierarchical pathnames. An abstract pathname has two components:
- An optional system-dependent prefix string, such as a disk-drive specifier,
"/"登录查看完整内容