File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are Servlet engines free to retire servlets at any time

 
Krupa Eng
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following are true statements?
A Servlets are not instantiated.
B JSP page is translated into a servlet when it is first invoked.
C J2EE specifies two types of Web components.
D Servlet engines are free to retire servlets at any time.
I thought B and C are correc t but the answers say that D is also true.
Are Servlet engines free to retire servlets at any time.
please clarify
Thanks,
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I understand, a servlet engine might retire a servlet at any time. Imagine the engine needing to free memory because it's running out of it. So it can, for example, destroy the instance of a servlet which has been used less.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, have a look at the servlet life cycle, it can clear a lot of doubts.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic