Hoàng Minh An
New member
What will be the output of the following Java program? (Note: file is made in c drive.)
A. true false
B. false true
C. true true
D. false false
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());
}
}
B. false true
C. true true
D. false false