suspended method understanding call-by-value parameter passing the jvm uses the java stack to perform parameter passing to methods specificallyjava uses the call-by-value parameter passing protocol this means that the current value of variable (or expressionis what is passed as an argument to called method in the case of variable of primitive typesuch as an int or floatthe current value of is simply the number that is associated with when such value is passed to the called methodit is assigned to local variable in the called method' frame (this simple assignment is also illustrated in figure note that if the called method changes the value of this local variableit will not change the value of the variable in the calling method in the case of variable that refers to an objecthoweverthe current value of is the memory address of object (we will say more about where this address actually is in section thuswhen object is passed as parameter to some methodthe address of is actually passed when this address is assigned to some local variable in the called methody will refer to the same object that refers to thereforeif the called method changes the internal state of the object that refers toit will simultaneously be changing the internal state of the object that refers to (which is the same objectneverthelessif the called program changes to refer to some other objectx will remain unchanged--it will still refer to the same object it was referencing before thusthe java method stack is used by the jvm to implement method calls and parameter passing incidentallymethod stacks are not specific feature of java they are used in the run-time environment of most modern programming languagesincluding and +the operand stack interestinglythere is actually another place where the jvm uses stack arithmetic expressionssuch as (( ( ))/eare evaluated by the jvm using an operand stack simple binary operationsuch as bis computed by pushing on the stackpushing on the stackand then calling an instruction that pops the top two items from the stackperforms the binary operation on themand pushes the result back onto the stack likewiseinstructions for writing and reading elements to and from memory involve the use of pop and push methods for the operand stack thusthe jvm uses stack to evaluate arithmetic expressions in java