I didn't get it, how output will be B??? It would be C.
Though <!-- --> is not a comment for your jsp and will be sent as a part of response. But they would be comment to browser. Right. So Browser won't display them. And you won't see them in output. It's mainly used to include javascipt snippets in your JSPs. But do we ever see them on browser display. NO...
So output will be C not B.
Yes, in case of XML documents, they are visible on screen..