Multiple choice

What does flushBuffer() method of HttpServletResponse object in JSP (Java Server Pages)?

  1. This method is used to force any content in the buffer to be written to the client.

  2. This method is used to clear any data that exists in the buffer as well as the status code and headers.

  3. This method is used to set the preferred buffer size for the body of the response.

  4. This method is used to set the character encoding (MIME charset) of the response being sent to the client.

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Yes, flushBuffer() method is used for that.