Multiple choice

In which of the following methods does the method return null, if the request did not include a header of the specified name?

  1. getIntHeader(java.lang.String name)

  2. getHeaderNames()

  3. getHeader(java.lang.String name)

  4. containsHeader(java.lang.String name)

  5. init()

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

If the request does not have a header of the specified name, this method returns -1.