| 11. |
Which of these class is used to read and write bytes in a file?
|
||||||||
|
Answer:
Option (c) |
| 12. |
Which of these method of InputStream is used to read integer representation of next available byte input?
|
||||||||
|
Answer:
Option (a) |
| 13. |
Which of these data type is returned by every method of OutputStream?
|
||||||||
|
Answer:
Option (d) |
| 14. |
Which of these is a method to clear all the data present in output buffers?
|
||||||||
|
Answer:
Option (b) |
| 15. |
Which of these method(s) is/are used for writing bytes to an outputstream?
|
||||||||
|
Answer:
Option (b) |
| 16. |
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());
}
}
|
||||||||
|
Answer:
Option (c) |
| 17. |
Which of these stream contains the classes which can work on character stream?
|
||||||||
|
Answer:
Option (c) |
| 18. |
Which of these class is used to read characters in a file?
|
||||||||
|
Answer:
Option (a) |
| 19. |
Which of these method of FileReader class is used to read characters from a file?
|
||||||||
|
Answer:
Option (a) |
| 20. |
Which of these class can be used to implement the input stream that uses a character array as the source?
|
||||||||
|
Answer:
Option (c) |