I am not sure what they mean exactly, but maybe they refer to the following difference.
Consider a jsp like this:
and a simular jsp with calling the get method:
And a Servlet (with a correct mapping) which just forwards (from the doGet() and the doPost() method) to another jsp where it shows the text fields
If you now refresh the page which was made after a doGet() it just refreshes, but if you refresh the page after a doPost(), the browser will ask you if you want to re-submit your previous data (you can't re-read it)
I don't know whether it's legal to post that question. Let's see what happens.
As long as you provide the source of the question it is ok for javaranch (with the exception of real exam questions of course).
Is this also from Whizlabs?
The html form accessed in a browser, and the value entered for value1 = 500, and value2 = 600. What will be displayed?
The question is testing the following rule:
Remember that request.getReader() is returning a BufferedReader which is just a wrapper around the InputStream
For response, it's use the ServletOutputStream for writing binary data, and PrintWriter is a convenient way of writing, and PrintWriter is wrapped around ServletOutputStream. But what about request object? I know, there are two objetcts, ServletInputStream and BufferedReader. Defuulty, on which object is used to get the body of the request, such as getAttribute(), getParameter(), etc?
For the request it is simular, you either use the getInputStream() which returns a ServletInputStream (just try it yourself and read the stream) or you use the convenient methods like getParameter() and getAttribute(). (the implementation of these methods probably use the getInputStream as well to obtain the data....)