adplus-dvertising
frame-decoration

Question

Thread priority in Java is?

a.

Integer

b.

Float

c.

double

d.

long

Answer: (a).Integer

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Thread priority in Java is?

Similar Questions

Discover Related MCQs

Q. What will happen if two thread of the same priority are called to be processed simultaneously?

Q. What requires less resources?

Q. What does not prevent JVM from terminating?

Q. What decides thread priority?

Q. What is true about time slicing?

Q. Deadlock is a situation when thread is waiting for other thread to release acquired object.

Q. What should not be done to avoid deadlock?

Q. What is true about threading?

Q. Which of the following is a correct constructor for thread?

Q. Which of the following stops execution of a thread?

Q. Which of the following will ensure the thread will be in running state?

Q. Which of this method is used to avoid polling in Java?

Q. Which of these method is used to tell the calling thread to give up a monitor and go to sleep until some other thread enters the same monitor?

Q. Which of these method wakes up the first thread that called wait()?

Q. Which of these method wakes up all the threads?

Q. Which two of the following methods are defined in class Thread?

1. start()
2. wait()
3. notify()
4. run()
5. terminate()

Q. Which three guarantee that a thread will leave the running state?

1. yield()
2. wait()
3. notify()
4. notifyAll()
5. sleep(1000)
6. aLiveThread.join()
7. Thread.killThread()

Q. Which of the following will directly stop the execution of a Thread?

Q. Which method must be defined by a class implementing the java.lang.Runnable interface?

Q. Which will contain the body of the thread?