1.

Thread priority in Java is?(a) Integer(b) Float(c) double(d) longThe question was asked in an online interview.My enquiry is from Multithreading Basics in chapter Multithreading of Java

Answer» RIGHT option is (a) Integer

Explanation: Java assigns to each thread a priority that determines HOE that thread should be TREATED with RESPECT to others. Thread priority is integers that specify relative priority of one thread to ANOTHER.


Discussion

No Comment Found

Related InterviewSolutions