• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jspDestroy()

 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements are true?
Choose at least one answer.
a. The jspInit() method may be overriden within a JSP page- Correct
b. The _jspService may be overriden within a JSP page
c. When a JSP starts the startup() method is called
d. The jspDestroy method will be called by the container before a JSP page goes out of service- Correct.

-This example is from Marcus Green mock exam. I answered only "a" but they have given "a" & "d" are correct answer. How "d" is the correct answer? Please anyone can explain?
 
Mark A Brown
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by dolly shah:
How "d" is the correct answer? Please anyone can explain?


Whenever a servlet goes out of service, either by the container being shut down or the application being redeployed, the container calls the servlet's jspDestroy method to allow the servlet to "clean up" before being taken out of service.
[ January 07, 2008: Message edited by: Mark A Brown ]
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I got it now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic