6 years ago in Java File Input Output

What is the output of this program?
 
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());
}
}

Note: file is made in c drive.

[A] true false
[B] false true
[C] true true
[D] false false
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 89
Correct 6
Incorrect 38
Viewed 45

Answers

Guest
Guest
Radwa Maher
Radwa Maher - 4 years ago

Radwa Maher from Romania is saying true true is correct answer

Poorvi
Poorvi - 4 years ago

Poorvi from Bengaluru, India is saying true false is correct answer

Yahya Darwich
Yahya Darwich - 4 years ago

Yahya Darwich from Lebanon is saying true true is correct answer

Nola li
Nola li - 4 years ago

Nola li from Chelsea, United States is saying false true is correct answer

Sunilku Darshi
Sunilku Darshi - 4 years ago

Sunilku Darshi from Bengaluru, India is saying false true is correct answer

Related Questions

Which of these classes can return more than one character to be returned to input stream?

  • [A] BufferedReader
  • [B] Bufferedwriter
  • [C] PushbachReader
  • [D] CharArrayReader

Which of these interface is not a member of java.io package?

  • [A] DataInput
  • [B] ObjectInput
  • [C] ObjectFilter
  • [D] FileFilter

Which of these is specified by a File object?

  • [A] a file in disk
  • [B] directory path
  • [C] directory in disk
  • [D] None of the mentioned