5 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

Overall Stats

Attempted 180
Correct 16
Incorrect 80
Viewed 84

Answers

Guest
Guest
Vaibhav Bisht
Vaibhav Bisht - 3 weeks ago

Vaibhav Bisht from Dehradun, India is saying true false is correct answer

Zo Go
Zo Go - 4 weeks ago

Zo Go from Casablanca, Morocco is saying true false is correct answer

Charlton Olmos
Charlton Olmos - 3 months ago

Charlton Olmos from Lincoln, Canada is saying true true is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying true true is correct answer

Michael Nguyễn
Michael Nguyễn - 6 months ago

Michael Nguyễn from Hanoi, Vietnam is saying false false is correct answer

Related Questions

Which of these stream contains the classes which can work on character stream?

  • [A] InputStream
  • [B] OutputStream
  • [C] Character Stream
  • [D] All of the mentioned

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

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