How does JVM know the method's stack depth?
When a caller push several operands into its operandstack,how does the JVM know the number of the callee's parameters and pop correct number of operandsout of the stack.
It's determined by the signature of the method given in the invokestatic, invokevirtual, invokeinterface, or invokespecial bytecode.