Which of the following statement is true for the include directive (Multiple choice)
Skill/Topic: Programming Constructs A) Can be used to incorporate contents from static documents B) It offers option of sharing local variables and better run time efficiency C) Provides benefit of automatic recompilation. D)
It is processed during translation and compilation and does not impose any restrictions on output buffering
RE: Which of the following statement is true for the include directive (Multiple choice)
A B and D are seems to be correct.
Because A) the include directive allows you to bring in code from another file without re-writing the code. B) As this inclusion of file is done during compilation time there is no overhead during runtime and hence run faster. We can share a file among many pages.
Eg. A menu containing page can be included in every JSP page without re-writing the same code. D) This inclusion of file is done during the compilation time as said above.