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


Please Help Members By Posting Answers For Below Questions

Which http method is said to be non-idempotent and idempotent?

607


What is the requirement of servlet config and servlet context implemented and how are they implemented?

541


Explain the architechure of a servlet?

605


What are the benefits of using servlet over cgi?

580


What is difference between GenericServlet and HttpServlet?

571






What are the type of protocols used in httpservlet?

612


What is a servlet?

608


When should you prefer to use doget() over dopost()?

661


What are the types of Session Tracking ?

648


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

620


What is called Session Tracking?

601


What’s the difference between forward() and sendredirect() methods?

575


How to notify an object in session when session is invalidated or timed-out?

631


Why do we have servlet listeners?

597


Difference between forward() method and sendredirect() method ?

584