22.9k views
5 votes
To write data to a binary file you create objects from the following classes:

a.)
File and Scanner

b.)
BinaryFileWriter and BinaryDataWriter

c.)
FileOutputStream and DataOutputStream

d.)
File and PrintWriter

1 Answer

0 votes

Answer: (C) File Output Stream and Data Output Stream

Step-by-step explanation:

The File output stream and data output stream classes are basically created to write the data into the binary file. The data output steam class is the output steam used to write various data types in the java in the efficient way.

The file output steam class is basically used to create the text file and store the various type of the data into individual bytes.

The file in the file output steam class basically represent the storage of the various type of the data in the binary file.

User Albrnick
by
5.1k points