can servlet have instance variables?
Answer Posted / ramana
it is not recomended to use instance variables in servlet...if necessary use static variables..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between encodeRedirectUrl and encodeURL?
What is the use of httpservletresponsewrapper?
How do you configure a centralized error handler in servlets?
What are different methods of session management in servlets?
Can we use the constructor, instead of init(), to initialize servlet?
Which java framework is most popular?
What do you mean by web applications? Explain web application directory arrangement?
Why servlet is faster than jsp?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Explain url encoding?
What is a server side include (ssi)
Why are http servlets used in programming?
What do you mean by request dispatcher in servlet? Also explain its methods.
How to notify an object in session when session is invalidated or timed-out?
Explain the difference between get and post method in servlet?