What is the correct way to close a file in Java after writing to it?
PYQ RPSC Programmer 2024
What is the correct way to close a file in Java after writing to it?
- A.
fileInput.close();
- B.
file.close();
- C.
fileWriter.close();
- D.
fileStream.close();
- E.
Question not attempted
Attempted by 437 students.
Sign up free to check your answer
Sign up freeLoading lesson…

