Page 1 of 1

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

Posted: Sat Feb 25, 2012 3:59 pm
by MC20147
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

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

Posted: Sat Feb 25, 2012 11:44 pm
by admin
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.

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

Posted: Sun Feb 26, 2012 3:18 pm
by MC20147
Thanks Paul

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

Posted: Wed Jun 07, 2017 3:19 pm
by TwistedLizard
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.