Multiple choice

Which of the following methods of the ServletContext interface returns a url of the resource of the specific mapped path?

  1. getResource

  2. getResourcePaths

  3. getContext

  4. both (1) and (2)

  5. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This method returns the URL to the resource that is mapped to a specified path.