MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this 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 |
| D. | Prints number of characters in the file |
| Answer» D. Prints number of characters in the file | |