Вопрос Java Newbie: каковы различия между getAbsolutePath() и getcanonicalPath() в классе файлов. Я не могу понять смысл из документов. в нижнем коде их вывод одинаковый.
public class copyFile {
public static void main(String[] args) throws IOException {
File inputFile = new File("/home/kit.ho/");
System.out.println("get AbsolutePath");
System.out.println(inputFile.getAbsolutePath());
System.out.println("get CanonicalPath");
System.out.println(inputFile.getCanonicalPath());
}
}