Multiple choice technology programming languages

Which statements are correct about the method PageContext.include?

  1. 1) There is no such method.

  2. 2) It has two paramters: request and response

  3. 3) It has one parameter of type String which is the relative URL of the page to include.

  4. 4) This method is appropiate to use within a Tag class.

Reveal answer Fill a bubble to check yourself
C,D Correct answer
Explanation

PageContext.include(String relativeUrlPath) includes the specified resource and executes it. Option C correctly identifies this signature with a single String parameter. Option D is also correct because this method is available for use within Tag handler classes. Option B is wrong - there's no two-parameter version with just request and response. The method exists (unlike option A claims).