Documentation Contents

Features of java.io.File in the Java 2 Platform

The File class is a true abstract representation of file and directory pathnames. This allows the File class to better support non-UNIX platforms such as Windows, which has a rich pathname syntax involving drive letters, UNC share names, and multiple separator characters. The specification of class File prior to the Java Platform could not handle these cases because it was written in terms of simple string operations.

The following features were introduced in the File class in Java SE 1.2:


Oracle and/or its affiliates Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.
Contact Us