Question: What is the purpose of the @ResponseBody annotation?

  1. to validate the char array contained in a response to ensure that it is a valid character encoding
  2. to generate a local byte stream from the body of a response that allows a request to be scanned for security risks
  3. to indicate whether a handler method return value should be bound to the web response body in servlet environments
  4. to ensure a ThreadLocal byte stream that allows a response to be encoded for reading directly into a socket stream

Answer: The correct answer of the above question is Option C:to indicate whether a handler method return value should be bound to the web response body in servlet environments