Which method should be overridden to make a servlet thread-safe without synchronizing the entire service method?

  • destroy()
  • doPost()
  • init()
  • service()
To make a servlet thread-safe without synchronizing the entire service method, you should override the service() method and implement thread safety measures within it.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *