Java File Separator And Current Working Directory Examples

If you want to make your java code platform independent, especially for java file operation, you should know java file separators. There are four separators by default, they are : File.separator, File.separatorChar, File.pathSeparator and File.pathSeparatorChar. We will introduce them one by one.