I got this question on examulator
Which of the following statements are true?
Select 1 option
1) A higher priority Thread will prevent a lower priorty Thread from getting any access to the CPU.
2) The yield method only allows any higher priority priority thread to execute.
3) The Thread class has a static method called yield
4) Calling yield with an integer parameter causes it to yield for a specific time.
The correct answer was 3.
I think 1 and 3 should be the correct answer
This is a quote from Kathy & Berts book
The closest thing to a guarantee is that at any given time, when a thread is running it will usually not have a lower priority than any thread in the runnable state. If a low-priority thread is running when a high-priority thread enters runnable, the JVM will preempt the running low-priority thread and put the high-priority thread in.
Could someone please tell me if 1 is the correct answer also.