Vidyalelo
Java Programming · Q202

Interfaces and Abstract Classes

Programming · Java Programming · question 202

Q202

What will be the output of the following Java program? (Note: inputoutput.java is stored in the disk.) import java.io.*; class filesinputoutput public static void main(String args[]) InputStream obj = new FileInputStream("inputoutput.java"); System.out.print(obj.available());

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