All modern I/O is stream-based.

Practice More Questions From: Quiz 5 : File I/O

Q:

All modern I/O is stream-based.

Q:

Which of these packages contain classes and interfaces used for input & output operations?

Q:

Can we use the Scanner class to read a file?

Q:

Which one of the following methods in the Scanner class is used to read integers from a file?

Q:

What class does readLine() belong to?

Q:

The println() method of the PrintWriter class throws an exception.

Q:

What class can be used to buffer the data sent to a FileWriter stream?

Q:

What does the following code do? File file = new File(“main.txt”); FileWriter fileWriter = new FileWriter(file, false);

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments