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

Moderator: admin

Post Reply
MC20147
Posts: 9
Joined: Sat Feb 25, 2012 3:51 pm
Contact:

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

Post by MC20147 » Sat Feb 25, 2012 3:59 pm

Not to be pendantic but option 3, "A thread can have priority from 1 to 10, is technically correct. My understanding is not all systems support this range of priorities but it is certainely possible for a thread to have on of those priorities.

I would suggest changing the question to "Select 2 options" (with options 1 & 3 being correct) or change option 3 to read "A thread will always have a priority from 1 to 10" (which would mean only option 1 is correct).

Thanks,

Mark

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

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

Post by admin » Sat Feb 25, 2012 11:44 pm

Hi,
That's alright, you have the right to be pedantic :)
In the case, as the explanation notes the priorities can range from Thread.MIN_PRIORITY to Thread.MAX_PRIORITY. They may not necessarily be 1 and 10.
By saying that a Thread can have priorities from 1 to 10 seems to imply that you can change this range and say make them 1 to 100, which is not the case.

But overall, I do agree that this question should be improved to remove this ambiguity.

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

MC20147
Posts: 9
Joined: Sat Feb 25, 2012 3:51 pm
Contact:

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

Post by MC20147 » Sun Feb 26, 2012 3:18 pm

Thanks Paul

TwistedLizard
Posts: 58
Joined: Sat Mar 01, 2014 1:48 pm
Contact:

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

Post by TwistedLizard » Wed Jun 07, 2017 3:19 pm

admin wrote:By saying that a Thread can have priorities from 1 to 10 seems to imply that you can change this range and say make them 1 to 100, which is not the case.
Even if option 3 were adapted to be a completely true statement, it's not an answer to the question:
How can you set priority of a thread?
I assume I should pick options that answer the question, not options that are true statements.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest