Vidyalelo
Java Programming · Q59

Input Output

Programming · Java Programming · question 59

Q59

Which of these class contains the methods used to write in a file?

A.
FileStream
B.
FileInputStream
C.
BUfferedOutputStream
Answer
D.
FileBufferStream

Answer: Option C

Solution

Answer: Option C
Solution:
The class BufferedOutputStream in Java contains methods that are used to write data into a file. It provides buffering for output streams, which helps to improve efficiency by reducing the number of write operations to the underlying file.