File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes PriorityQueue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "PriorityQueue" Watch "PriorityQueue" New topic


Costa lamona
Ranch Hand

Joined: Sep 24, 2006
Posts: 102
Give me an example situation where I would prefer to use PriorityQueue.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
Prefer it with respect to which alternative?
Satish Kota
Ranch Hand

Joined: Feb 08, 2006
Posts: 88
PriorityQueue are often used in sorting algorithms. Like Selection sort and Sort.

SCJP 5.0 77%
I agree. Here's the link:
subject: PriorityQueue
It's not a secret anymore!