To avoid thread safety issues, it's recommended to use __________ instead of instance variables in servlets.

  • final variables
  • global variables
  • local variables
  • static variables
Using static variables is recommended in servlets to avoid thread safety issues, as they are shared among all instances of the servlet and are stored in a shared memory space.
Add your answer
Loading...

Leave a comment

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