Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Printwriter' - 1 question(s) found - Order By Newest | ||||
| ||||
Ans. Buffer is cleared in 2 circumstances, i.e 1. naturally when the buffer is filled and 2. explicitly when the method flush is called ( for flushing the residual ) Ideally we just need to call flush once at the end of file writing so that the residual content should be dumped to file. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  BufferedWriter  Writer  PrintWriter  File io  flush  file handling | ||||
Related Questions | ||||
Tell something about BufferedWriter ? What are flush() and close() used for ? | ||||
Difference between save and flush in Hibernate ? | ||||
Have you ever faced any problem because of PrintWriter buffer and autoflush mechanism ? How did you got rid of it ? | ||||
Can we disable auto flushing for PrintWriter ? | ||||