What is relative path?

What is relative path?

A relative path is a way to specify the location of a directory relative to another directory. … Relative paths are useful for shared indexes on networks when a physical drive uses a different drive letter for different users.

What is absolute path name?

An absolute pathname, also referred to as an absolute path or a full path, is the location of a filesystem object (i.e., file, directory or link) relative to the root directory. … It contains all other directories and their subdirectories, etc., and it is designated by a forward slash ( / ).

What is relative path and absolute path in Java?

An absolute path contains the full path from the root of the file system down to the file or directory it points to. A relative path contains the path to the file or directory relative to some other path.