Examveda
Examveda

How can you close a file after reading or writing in Java?

A. By using the `terminate()` method

B. By using the `close()` method of the file stream

C. By using the `readLine()` method

D. By using the `terminate()` method

Answer: Option B


This Question Belongs to Java Program >> Input Output

Join The Discussion

Related Questions on Input Output