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 


Showing Answers 1 - 7 of 7 Answers

Ashique

  • Aug 13th, 2008
 

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.

Regards
Ashique.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions