What will be the output of the following Java program? (Note: file is made in c drive.) [code] import java.io.*; class files

Hoàng Minh An

New member
What will be the output of the following Java program? (Note: file is made in c drive.)
Code:
    import java.io.*;
    class files 
    {
        public static void main(String args[]) 
        {
            File obj = new File("/java/system");
            System.out.print(obj.canWrite());
            System.out.print(" " + obj.canRead());
        }
    }
A. true false
B. false true
C. true true
D. false false
 

Tìm kiếm

Back
Top