Getting the Current Working Directory in Java

In this section, you will learn how to get the current working directory.

Getting the Current Working Directory in Java

In this section, you will learn how to get the current working directory.

Getting the Current Working Directory in Java

C:\nisha>javac GetCurrentDir.java

C:\nisha>java GetCurrentDir
Current Working Directory : C:\nisha

C:\nisha>

Download this example.