--:--









Quiz for FileReader & FileWriter

Course: JAVA | Subject: Java | Topic: Java I/O



Logo

Q1: Which package provides FileReader and FileWriter classes?

Logo

Q2: What is FileReader used for?

Logo

Q3: Which method reads a single character in FileReader?

Logo

Q4: What does FileWriter do?

Logo

Q5: Which constructor is used to append data to a file using FileWriter?

Logo

Q6: Which method writes a single character to a file in FileWriter?

Logo

Q7: Which exception must be handled with FileReader/FileWriter?

Logo

Q8: What happens if the file does not exist when using FileReader?

Logo

Q9: How can you ensure file resources are closed automatically?

Logo

Q10: What encoding does FileReader use by default?

Are you ready to start test? Set your time limit