Original: http://blog.csdn.net/spy19881201/article/details/6218722
File.pathseparator refers to a separator that separates successive multiple path strings, for example:
JAVA-CP Test.jar;abc.jar HelloWorld
is to mean ";"
File.separator is used to separate directories in the same path string, for example:
C:/Program Files/common Files
That means "/"
Separatorchar
public static final Char Separatorchar
The system-related default name separator. This field is initialized to the first character that contains the system property File.separator value. On UNIX systems, the value of this field is '/'; on a Microsoft Windows system, it is '/'.
Separator
public static final String separator
The system-related default name separator, which, for convenience, is represented as a string. This string contains only one character, that is, Separatorchar.
Pathseparatorchar
public static final Char Pathseparatorchar
The system-related path separator. This field is initially the first character that contains the Path.separator value of the system property. This character is used to delimit the file names in a sequence of files given in the form of a path list. On a UNIX system, this field is ': '; on a Microsoft Windows system, it is '; '.
PathSeparator
public static final String PathSeparator
The system-related path separator, which, for convenience, is represented as a string. This string contains only one character, that is, Pathseparatorchar.