How to make servlet thread safe?

Answer Posted / a.srinivs rao

in order to make a servlet thread safe we have to declare
the non-sharable variales inside the init method,and
sharble at the servlet class leve.

Is This Answer Correct ?    2 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet initializer?

503


Can we use the constructor, instead of init(), to initialize servlet?

580


List the Different types of servlet?

582


What is the element?

585


What do you mean by servlet context?

601






Can servlet have a constructor ?

595


What are different ways for authentication of servlet?

525


Tell the new features added in servletrequest interface i.e. Servlet 2.4

573


Explain the servlet filter.

540


What's the servlet interface?

594


What is a servlet context object?

619


Write a command to get actual path of a servlet to the server?

539


what is servlet chaining?

623


What is the functionality of actionservlet and requestprocessor?

594


What is a web container and what is its responsibility?

527