can servlet have instance variables?

Answer Posted / ravikiran.chd

yes and we can make them thread safe by implementing
SingleThreadModel

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of ssi ?

587


What is the use of servletconfig interface?

550


What do you mean by session tracking and also explain its techniques?

492


What is difference between GenericServlet and HttpServlet?

561


What are the functions of Servlet container?

607






How do you design microservices?

619


What is difference between cookies and httpsession?

544


What is servlet container. how it works?

603


How will you pass values from HTML page to the servlet?

550


What are the uses of servlets?

615


Explain get and post.

643


If a servlet is not properly initialized, what exception may be thrown?

619


What is meant by session? Tell me something about httpsession class?

595


Describe the phases of servlet lifecycle?

625


What is the disadvantage of cookies?

570