$ 0 0 PriorityQueue in java is a sorting based queue. It sorts its elements based on the natural ordering of the type.