Variable sharing inside static method
问题 I have a question about the variables inside the static method. Do the variables inside the static method share the same memory location or would they have separate memory? Here is an example. public class XYZ { Public Static int A(int value) { int b = value; return b; } } If 3 different user calls execute the method A XYZ.A(10); XYZ.A(20); XYZ.A(30); at the same time. What would be the return values of each call? XYZ.A(10)=? XYZ.A(20)=? XYZ.A(30)=? 回答1: They're still local variables - they