is servlet,struts are threadsafe or not.please telme correct
answer

Answer Posted / yadav1776

Yes, servlet and struts are thread safe.
Only one instance of servlet is created by servlet
container at startup.
Same is the case with struts, only one instance is created
of action servlet (considering struts 1.x).

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3797


What is the relationship between an event-listener interface and an event-adapter class?

759


Can I map more than one table in a cmp?

780


What is the difference between the session.update() method and the session.lock() method?

730


Do we need to override service() method

1365






int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1580


Name three component subclasses that support painting?

803


What is the purpose of the finally clause of a try-catch-finally statement?

762


Why a component architecture for the java platform?

765


What are the difference between RMI and CORBA?

812


Explain what is synchronization?

813


Explain phantom read?

1946


Which containers use a border layout as their default layout?

816


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

772


Can I import same package/class twice? Will the jvm load the package twice at runtime?

841