5 years ago in Java File Input Output

7. What is the output of this program?
    
import java.io.*;
class filesinputoutput {
public static void main(String args[]) {
InputStream obj = new FileInputStream("inputoutput.java");
System.out.print(obj.available());
}
}

Note: inputoutput.java is stored in the disk.

[A] true
[B] false
[C] prints number of bytes in file
[D] prints number of characters in the file
Loading...
Next Question

Overall Stats

Attempted 364
Correct 64
Incorrect 118
Viewed 182

Answers

Guest
Guest
akshay kharat
akshay kharat - 3 days ago

akshay kharat from Pune, India is saying true is correct answer

Vaibhav Bisht
Vaibhav Bisht - 4 weeks ago

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

Zo Go
Zo Go - 4 weeks ago

Zo Go from Casablanca, Morocco is saying prints number of bytes in file is correct answer

nezha Khai
nezha Khai - 1 month ago

nezha Khai from Casablanca, Morocco is saying true is correct answer

ashiq rasool
ashiq rasool - 3 months ago

ashiq rasool is saying true is correct answer

Related Questions

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

  • [A] String
  • [B] StringReader
  • [C] Writer
  • [D] File