Lets take an example. Suppose your program is in the directory
/home/siddharth/java
then
File directory = new File("d");
here directory will point to the path
/home/siddharth/java/d
this d can be a file or directory. Now the second statement
File file = new File(directory,"f");
Now this object named file will point to the path
/home/siddharth/java/d/f
so basically if you provide two parameters to the file constructor, then the first parameter points to the directory inside which the second parameter will point to...