6 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

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


Overall Stats

Attempted 171
Correct 27
Incorrect 49
Viewed 95

Answers

Guest
Guest
priya narkhede
priya narkhede - 4 years ago

priya narkhede from Mumbai, India is saying prints number of bytes in file is correct answer

Mina Atef
Mina Atef - 4 years ago

Mina Atef from Cairo, Egypt is saying true is correct answer

Poorvi
Poorvi - 4 years ago

Poorvi from Bengaluru, India is saying prints number of bytes in file is correct answer

Yahya Darwich
Yahya Darwich - 4 years ago

Yahya Darwich from Lebanon is saying true is correct answer

ranjani kala
ranjani kala - 4 years ago

ranjani kala from Chennai, India is saying prints number of bytes in file is correct answer

Related Questions

Which of these class is used to read characters in a file?

  • [A] FileReader
  • [B] FileWriter
  • [C] FileInputStream
  • [D] InputStreamReader

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