Multiple choice technology programming languages

Which of the following statement is true for the tag

  1. It offers option of sharing local variables and better run time efficiency

  2. Can be used to incorporate contents from static documents

  3. Provides benefit of automatic recompilation

  4. Can include dynamically generated output

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

The JSP include directive (<%@ include %>) incorporates static documents into JSPs at translation time, merging content before compilation. When the included file changes, the JSP automatically recompiles. However, it cannot handle dynamically generated output - dynamic inclusion requires jsp:include action. Local variables cannot be shared through the directive.