About Question enthuware.ocpjp.v7.2.1558 :
Posted: Wed Jun 26, 2013 4:11 pm
This is a beyond the actual exam question, but I was hoping you could provide some clarification: the line "synchronized(TestClass.class)" confused me - is it correct to say that this line has no effect because it only controls starting a thread and not what the thread's run() does?
Also, what would be the point of synchronizing on .class?
Thank you.
Also, what would be the point of synchronizing on .class?
Thank you.