• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic