This question might be naive, so please help me out if I am missing out on some basic stuff.
So if there's an API and multiple users hit the same API simultaneously, are same variables updated? Intuition says this should not be the case, but then what is? I am unable to figure it out by just googling.
Say for example I have an API written in Java which has mutable objects. Now if multiple users are hitting that same API, will the existence of these mutable objects affect the response during simultaneous hits?