21. |
A stream is a sequence of data. In Java a stream is composed of?
|
||||||||
Answer:
Option (a) |
22. |
Which stream does Java application uses to read data from a source, it may be a file, an array, peripheral device or socket?
|
||||||||
Answer:
Option (a) |
23. |
These are commonly used methods of _____ class
1) public abstract int read()throws IOException 2) public int available()throws IOException 3) public void close()throws IOException
|
||||||||
Answer:
Option (b) |
24. |
Which is used as an internal buffer to add more efficienctly than to write data directly into a stream?
|
||||||||
Answer:
Option (a) |
25. |
Which classes does Oracle has suggested not to use if you have to read and write the textual information?
|
||||||||
Answer:
Option (c) |
26. |
Which are the ways to read data from the keyboard?
|
||||||||
Answer:
Option (d) |
27. |
Which is used to converts the byte-oriented stream into character-oriented stream?
|
||||||||
Answer:
Option (c) |
28. |
Which class breaks the input into tokens using a delimiter which is whitespace by default? It provides many methods to read and parse various primitive values.
|
||||||||
Answer:
Option (b) |
29. |
Which class automatically flushes the data so there is no need to call flush() method. Moreover, its methods don't throw IOException?
|
||||||||
Answer:
Option (d) |
30. |
The PrintStream class provides methods to?
|
||||||||
Answer:
Option (b) |