Which of the following correctly closes the FileWriter?

Last Updated :
Discuss
Comments

Which of the following correctly closes the FileWriter?

fw.stop()

fw.flush()

fw.close()

fw.dispose()

Share your thoughts in the comments