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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
hardtail29

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

Post 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".

admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

It is indeed specified in the question, "Now, Thread two decides to call doSmallStff() method on the same object."

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Guest

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

Post 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

jszczepankiewicz

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

Post by jszczepankiewicz »

Typo in "Thread two decides to call doSmallStff()"

admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

jszczepankiewicz wrote:Typo in "Thread two decides to call doSmallStff()"
I see that it is already fixed in v1.60.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 222 guests