MCQs
Total Questions : 51
| Page 5 of 6 pages
Answer: Option A. -> read()
Answer: Option A. -> BufferedReader
None.
Answer: Option C. -> FileNotFoundException
In cases when the file specified is not found, then FileNotFoundException is thrown
by java run-time system, earlier versions of java used to throw IOException but after
Java 2.0 they throw FileNotFoundException.
Answer: Option B. -> StringBuffer()
StringBuffer represents growable and writeable character sequence.
Answer: Option D. -> All of the mentioned
None
Answer: Option C. -> Character Stream
InputStream & OutputStream classes under byte stream they are not streams.
Character Stream contains all the classes which can work with Unicode
Answer: Option B. -> FileInputStream
None.
Answer: Option D. -> readLine()
None.
Answer: Option A. -> FileReader
We can read characters in a file using FileReader class of Java.
Answer: Option A. -> IOException
read method throws IOException.