Researched by Sara Louis Question of the Week presents answers to key questions posed by the developer community. I've been wondering about slightly more Java TM programming specific tips. This is a great suggestion, and it does work well, but I was hoping someone would have more like it. Another suggestion that I've heard is that casting can be very expensive, but I've not seen any further discussion of crafty ways of getting around such a common operation.
Optimization comes in many forms.
I, and lots of others, have picked up a number of these along the way, but I haven't seen a good community resource that really gets into great detail. Of course, some things change as new versions come out. Probably the main one, unfortunately for an OO language is to limit object creation. This means to use primitives when possible, otherwise write classes so instances can be reinitialized and reused. Sometimes it means avoiding standard classes when possible.