Archive | February 18th, 2009

What is transient keyword in Java?

February 18, 2009

24 Comments

This article explains about the transient variable and when it will be used in the Java programming. Another important fact is that, this question is most frequently asked in the Java interviews for checking the basic knowledge of a programmer. Another point is that this keyword is not frequently used by programmer in the normal [...]

email

Ordering Queue Using Comparator Interface and PriorityQueue

February 18, 2009

0 Comments

The basic use of Queue class is to provide a data structure which allows storing objects in a First in First out(FIFO) format. But sometimes one wants to maintain the ordering, based on some other metric. This is exactly the purpose of PriorityQueue, another Queue implementation. You provide it a Comparator, and it does the [...]