Multiple choice technology programming languages

If i put a Servlet on each servers, and there is a static variable in thisServlet. Do all the instances on these servers share the same static variable?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Static variables are stored in the JVM memory space and are shared only within the same JVM instance and classloader. Since the servlet is deployed on multiple separate servers, each runs in its own JVM, meaning they do not share the static variable, making the statement false.