Actually,
pathSeparator is used to separate the entries in path. In Windows it's
; and in Unix systems it's
:.
For example, see how these entries are separated
pathSeparator is a
String and pathSeparatorChar is a
char. It's convenient to have both available.