1.

PriorityQueue is thread safe.(a) True(b) FalseThe question was asked during an interview.My question is from Data Structures-Queue in portion java.util – The Collections Framework of Java

Answer» CORRECT choice is (a) True

The best EXPLANATION: PriorityQueue is not synchronized. BlockingPriorityQueue is the THREAD SAFE IMPLEMENTATION.


Discussion

No Comment Found

Related InterviewSolutions