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
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Why do we have servlet wrapper classes?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What are all the advantages of servlet over cgi?
What is the difference between Server and Container?
What is pure servlet?
Why is a constructor needed in a servlet even if we use the init method?
Which interface must be implemented by all servlets?
What is servlet and its types?
What do you mean by the servlet chaining?
If some new data has entered the database, explain how can a servlet refresh automatically?
Explain web container.
What are the ways to handle multi-threading in servlets?
What is servlet container?
Name the different ways of session tracking.