In java doc about
File
writes:
Converts this abstract pathname into a pathname string.
I'm trying to write 1
File file3 = new File("D:\\work"); System.out.println(file3.getPath());
In cmd, I see D:\\work
I am trying to write down 2:
File file4= new File("file4"); System.out.println(file4.getPath());
In cmd, I see:
file4
So I have a question:
What's the difference between
abstract path
and
path name string
?
source share