In java doc about
File#getPath()
writes:
Converts this abstract pathname into a pathname string.
I try to w
An abstract pathname is a java.io.File
object and a pathname string is a java.lang.String
object. Both reference the same file on the disk.
How do I know?
The first sentence of the Javadoc of java.io.File
explains:
An abstract representation of file and directory pathnames.
It goes on to explain why:
User interfaces and operating systems use system-dependent pathname strings to name files and directories. This class presents an abstract, system-independent view of hierarchical pathnames.