Page 1 of 1
About Question com.enthuware.ets.scjp.v6.2.278 :
Posted: Sun Dec 02, 2012 12:18 pm
by hardtail29
It should be made clear in the question that both threads are executing the same instance of MySecureClass otherwise the correct answer is 1) "done will be printed immediately".
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
Posted: Sun Dec 02, 2012 12:51 pm
by admin
It is indeed specified in the question, "Now, Thread two decides to call doSmallStff() method on the same object."
HTH,
Paul.
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
Posted: Sun Dec 02, 2012 7:27 pm
by Guest
Yes, you're right it is there in the description but IMHO it should be in the code as well. After all this is a test about Java not about descriptions. To quibble further this question has a "different" style which could be mistaken as an attempt to label.
Code: Select all
try
{
LINE1: Thread.sleep(10000);
}catch(Exception e){ }
instead of what appears in other questions:
Code: Select all
try
{
Thread.sleep(10000); //line 1
}catch(Exception e){ }
... </quibble> overall I think the questions are great, just trying for consistency/objective
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
Posted: Fri Dec 28, 2012 10:11 am
by jszczepankiewicz
Typo in "Thread two decides to call doSmallStff()"
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
Posted: Fri Dec 28, 2012 5:28 pm
by admin
jszczepankiewicz wrote:Typo in "Thread two decides to call doSmallStff()"
I see that it is already fixed in v1.60.
HTH,
Paul.