In this section, we will discuss some general Java performance tuning tips, including string manipulation, dealing with the Java collections, using the synchronized code, and logging and exception handling best practices.
Different classes and techniques are involved in the string manipulation in the Java application. We will discuss the string creation, string concatenation, and the usage of the
String creation can take many forms either by using the direct assignment operator or the
new String() constructor. The interesting fact is that creating the
String object using the assignment operator (that is, string literal) ...