You can hold the output with the servlet and do nothing. (Why would you want to do that, haven't the faintest of ideas)
You can store the output in database (what would you do with, haven't got the faintest of ideas)
Now the question:
Deepak, what exactly did you have in mind when you asked the question. Are you asking a question or is it a quiz for the rest of us? If you let us know the end-objective, we might be able to give you some more thoughts, I think...
Deepak Kumar Jena wrote:Phoenix, I don't have any intension to test anyone's ability. I had to face this question in an interview. An even my answer was same (as mentioned by you and me), but the interviewer had keep on asking me "what else?". In the end of the interview when I asked her about the answer, she asked me to search for it in google.
How I hate dumb interviewers?
And sorry if I appeared to be questioning your motives, I was actually confused as to why would somebody want to know more than that... Sorry if I gave you that impression.
<edit> sorry name change policy!!! I am still phoenix under a different guise. </edit>