A relative path resolved against the working directory
A relative path resolved against the working directory
Answer
File out = new File("dump.out"); if (out.exists()) System.out.println(out.getAbsolutePath());
A relative File names dump.out in the current working directory; getAbsolutePath() resolves it. No machine-specific path is baked in.