Examveda

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

A. FileStream

B. FileInputStream

C. BUfferedOutputStream

D. FileBufferStream

Answer: Option C

Solution (By Examveda Team)

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.

This Question Belongs to Java Program >> Input Output

Join The Discussion

Comments (1)

  1. Mani Deep
    Mani Deep:
    1 year ago

    I think its answer is C.BufferedOutputStream

Related Questions on Input Output