About Question com.enthuware.ets.scjp.v6.2.278 :
Moderator: admin
About Question com.enthuware.ets.scjp.v6.2.278 :
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".
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
It is indeed specified in the question, "Now, Thread two decides to call doSmallStff() method on the same object."
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
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.
instead of what appears in other questions:
... </quibble> overall I think the questions are great, just trying for consistency/objective
Code: Select all
try
{
LINE1: Thread.sleep(10000);
}catch(Exception e){ }
Code: Select all
try
{
Thread.sleep(10000); //line 1
}catch(Exception e){ }
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
Typo in "Thread two decides to call doSmallStff()"
-
- Site Admin
- Posts: 10066
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.278 :
I see that it is already fixed in v1.60.jszczepankiewicz wrote:Typo in "Thread two decides to call doSmallStff()"
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 222 guests