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

Note: file is made in c drive.

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

Overall Stats

Attempted 186
Correct 64
Incorrect 42
Viewed 80


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 java/system is correct answer

Abhishek Raut
Abhishek Raut - 2 months ago

Abhishek Raut is saying system is correct answer

zainb ryad
zainb ryad - 2 months ago

zainb ryad from Jenin, Palestine is saying /java/system is correct answer

Charlton Olmos
Charlton Olmos - 3 months ago

Charlton Olmos from Lincoln, Canada is saying /java/system 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 is specified by a File object?

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