Relative Paths and Absolute Path in Java
- Relative paths is the one the do not start with a forward slash(/) or a backward slash(\).Example for Relative path: -classpath dirB: dirB/dirC. The relative path is meaningfull only when the user current directory is directory A where B is its sub directory.
- Absolute paths start with a slash. Indicates the root directory.
Comments
Post a Comment