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("/java/system");
    System.out.print(object.canWrite());
    System.out.print(" " + object.canRead());
    }
    }
    1. false false
    2. false
    3. true
    4. true false
    5. None of these
Correct Option: A

false false



Your comments will be displayed only after manual approval.