public void synchronized method1(Class_Instance_Variables instanceVar, int classprimitive)
public void method2(Class_Instance_Variables instanceVar, int classprimitive)
When passing parameters to method does java creates fresh reference to the methods or does it use existing reference to pass to the methods ?
Thread-1 get the lock of synchronized method1 and pass "class instance variable" and class instance primitive variable. Thread-2 pass method2 pass same "class instance variable" and class instance primitive variable.
How the references work in this case ? Does it create a new reference for each passing?