• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jspDestroy()

 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks I got it now.
 
reply
    Bookmark Topic Watch Topic
  • New Topic