Exam 10: File IO

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Write a Java statement that creates an output stream to a binary file named statistics.dat.

(Essay)
4.8/5
(40)

Use the output stream created in number 11 above to write the String BBC to the file named statistics.dat.

(Essay)
4.9/5
(28)

The read)method of the class RandomAccessFile returns the type:

(Multiple Choice)
4.9/5
(32)

The File class contains methods that allow you to check various properties of a file.

(True/False)
4.8/5
(40)

Write a Java method that returns a String representing a file name entered by the user.Use the BufferedReader class to obtain input.

(Essay)
4.9/5
(35)

Write a complete Java program using a BufferedReader object that opens a file named autos.txt and displays each line to the screen.

(Essay)
4.7/5
(37)
Showing 41 - 46 of 46
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)