![]() |
Java file system provides both hard and symbolic links, which let us make references to files and directories. In this article, we will learn how to create symbolic links and hard links in Java.
Program to Create Symbolic Link in JavaBelow is the code implementation to create a symbolic link to the original file. Java
Output
Symbolic link created successfully. Explanation of the above Program:
Program to Create Hard Links in JavaBelow is the code implementation to create hard link to the original file. Java
Output
Original file created. Hard link created successfully. Explanation of the above program:
|
Reffered: https://www.geeksforgeeks.org
Java |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |