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");

[A] java
[B] system
[C] java/system
[D] /java/system
Next Question

Overall Stats

Attempted 179
Correct 87
Incorrect 13
Viewed 79


Vaibhav Bisht
Vaibhav Bisht - 1 month ago

Vaibhav Bisht from Dehradun, India is saying system is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying system is correct answer

Charlton Olmos
Charlton Olmos - 3 months ago

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

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying java/system is correct answer

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

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

Related Questions

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