Vidyalelo
Java Programming · Q65

Input Output

Programming · Java Programming · question 65

Q65

What will be the output of the following Java 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
Answer
D.
prints number of characters in the file

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board