import java.io.*;
class Path {
public static void main(
String[] args) throws Exception {
File file = new File("Ran.test");
System.out.println(file.getAbsolutePath());
}
}
What do you expect the output to be? Select the one right answer.
A) Ran.test
B) source\Ran.test
C) c:\source\Ran.test
D) c:\source
E) null
// I CHOSE A, BUT THE CORRECT ANSWER IS C, HOW CAN THIS BE SO WHEN A FILE DOES
NOT CREATE A FILE IN THE CURRENT WORKING DIRECTORY ??