Multiple choice

Which of the following methods is defined by the servlet specification in order to take two parameters such as javax.servlet. ServletRequest and javax.servlet. ServletResponse object?

  1. service()

  2. init()

  3. destroy()

  4. containsHeader(java.lang.String name)

  5. GET

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

The servlet specification defines the service() method to take two parameters such as javax.servlet.ServletRequest and javax.servlet.ServletResponse object.