Thread safety in servlets can be enhanced by using _________ scoped variables instead of instance variables.

  • application
  • page
  • request
  • session
Thread safety in servlets can be enhanced by using application scoped variables instead of instance variables. This ensures shared data is accessible to all users but is stored at the application level, reducing thread safety issues.
Add your answer
Loading...

Leave a comment

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