can servlet have instance variables?
Answer Posted / debapriya maity
Yeah we surely can provide instance variable,but ur servlet
implements MultithreadModel,its is not the right
approach,better use local varibles ,using SingleThreadModel
approach cause perfomance degradation
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How can we create deadlock situation in servlet?
How does Cookies work in Servlets?
What are the type of protocols used in httpservlet?
What is servlet and how it works?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
Explain url encoding?
Write a simple servlet program to print the contents of html.
What are the phases of the servlet life cycle?
Explain the difference between get and post method in servlet?
How to notify an object in session when session is invalidated or timed-out?
How can you use a servlet to generate a plain text instead of html?
What is the difference between portlet and servlet?
Difference between forward() method and sendredirect() method ?
Is that servlet is pure java object or not?
How do I support both get and post from the same servlet?