If you get yourself a profiler, this will help you, some will even give you great tips.
Example: ANTS Profiler
You will usually find that reducing the number of times you create Strings is the main performance improvement you can get.
It doesnβt bother with the garbage collector manually (unless you really know what you are doing)
This link for Java design templates is too involved, do not put too much of the word Java there, you can use what they learn to develop in any language.
The fact is that if you want to know when to do what and what methods to use, and so on, design patterns are what you are talking about.
I would like someone to point this out to me earlier in my career.
Ric tokyo
source share