- Interview Questions and Answers for 'Struts 2' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



- Interview Questions and Answers for 'Struts 2' - 2 question(s) found - Order By Rating

 Q1. Why Struts 1 Classes are not Thread Safe whereas Struts 2 classes are thread safe ?
Ans. Struts 1 actions are singleton. So all threads operates on the single action object and hence makes it thread unsafe.

Struts 2 actions are not singleton and a new action object copy is created each time a new action request is made and hence its thread safe.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   j2ee   mvc frameworks   struts   struts1   struts2   struts 1   struts 2   architecture

Try 1 Question(s) Test


Related Questions

  Do we have form beans in Struts 2 ?
  Action Class is singleton and hence not thread safe in ..


 Q2. Do we have form beans in Struts 2 ?
Ans. No, because they are not longer required. As action classes are no more singleton in Struts 2, user inputs can be captured in action itself.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     struts   struts2   struts 2


Related Questions

  Why Struts 1 Classes are not Thread Safe whereas Struts 2 classes are thread safe ?
  Which MVC is struts2 based on ?
  Explain features of struts2 ?
  Action Class is singleton and hence not thread safe in ..



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: