Question: What does a ViewResolver do?

  1. It supports internationalization of web applications by detecting a user's locale.
  2. It generates a view by mapping a logical view name returned by a controller method to a view technology.
  3. It creates a unique view determined by the uers's browser type,supporting cross-browser compatibility.
  4. It maps custom parameters to SQL views in the database, allowing for dynamic content to be created in the response.

Answer: The correct answer of the above question is Option B:It generates a view by mapping a logical view name returned by a controller method to a view technology.