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 shared only within a single JVM instance. Each server runs its own JVM with its own memory space, so static variables are not shared across different servers. Each servlet instance on each server has its own separate copy of the static variable.