MCQs
Total Questions : 18
| Page 1 of 2 pages
Answer: Option C. -> java.io
java.io provides support for input and output operations.
Answer: Option C. -> directory in disk
directory in disk
Answer: Option C. -> ObjectFilter
ObjectFilter
Answer: Option A. -> File
A File describes properties of a file, a File object is used to obtain or manipulate the information associated with a disk file, such as the permissions, time date, and directories path, and to navigate subdirectories.
Answer: Option A. -> String
String
Answer: Option B. -> isFile()
isFile() returns true if called on a file and returns false when called on a directory.
Answer: Option C. -> FileInputStream
FileInputStream
Answer: Option A. -> InputStream
InputStream & OutputStream are designed for byte stream. Reader and writer are designed for character stream.
Answer: Option A. -> read()
read()
Answer: Option D. -> None of the mentioned
Every method of OutputStream returns void and throws an IOExeption in case of errors.