Home » JAVA Programming » Files and I/O » Question
  1. What is the output of this program?
    import java.io.*;
    public class files_Example
    {
    public static void main(String args[])
    {
    File object = new File("/New Folder/system");
    System.out.print(object.getAbsolutePath());
    }
    }
    1. /New Folder/system
    2. /New Folder
    3. /system
    4. Folder/system
    5. None of these
Correct Option: A

/New Folder/system



Your comments will be displayed only after manual approval.