Home / MCQ Bank / Computer
Computer Threads

What is the purpose of the setPriority() method in Java threads?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • It sets the priority of a thread

Related Computer Questions

What will be the output of the following Java code? import java.util.*; class vector { public static void main(String args[]) { Vector obj = new Vector(4,2); obj.addElement(new Integer(3)); obj.addElement(new Integer(2)); obj.addElement(new Integer(5)); System.out.println(obj.elementAt(1)); } } If the file name is enclosed in angle brackets, then ______ Which of the following are not done by Business Intelligence (BI) systems? What is the main objective of "k-means++" initialization in the K-means clustering algorithm? What will be the output of the following C code? #include <stdio.h> int main() { int x = 3, i = 0; do { x = x++; i++; } while (i != 3); printf("%d\n", x); }