When should I use File.separator and when File.pathSeparator?

In the File class there are two strings, separator and pathSeparator.

What’s the difference? When should I use one over the other?

3 s
3

Leave a Comment