Almost every java developer finds one fine morning that he cannot compare String with "==" as he has been doing with int or char. Then either he finds out or someone kindly tells him that objects cannot be compared with "==". He has to use equals(Object) method. However rarely, if ever, he realizes that it is possible to use == to compare two String for equality. There are two greatThe benefits of being able to use == for String comparison - improved performance and memory usage reduction.
One of the common questions I hear from Java newcomers is - where is a FIFO list in Java?
Java does have a FIFO list capability built-in with LinkedList and ArrayList, but they are not well advertized.