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.
Older News
S M T W T F S
29 30 31 1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
Copyright© 2010 The Gaea Times