O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Java performance tuning tips

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.

String manipulation performance tuning tips

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 StringBuilder and StringBuffer classes.

String creation tips

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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required