Trần Thị Mai
New member
What will be the output of the following Java program? (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
Code:
import java.io.*;
class filesinputoutput
{
public static void main(String args[])
{
InputStream obj = new FileInputStream("inputoutput.java");
System.out.print(obj.available());
}
}
B. false
C. prints number of bytes in file
D. prints number of characters in the file