Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.793 :

Posted: Sun Dec 04, 2011 7:45 pm
by ETS User
I have trouble understanding this.
the args objects that we are locking are completely different instances. Why would the notify method of AnotherThreads arg object matter to main method's arg parameter?

Re: About Question com.enthuware.ets.scjp.v6.2.793 :

Posted: Mon Dec 05, 2011 2:25 am
by admin
Why do you think that args objects are completely different instances. It is the same args array object that is being passed by the main method to AnotherThread.

HTH,
Paul