Chapter 1. Java Strings

Java String and StringBuffer objects are two of the most frequently used class instances in Java programs. It is definitely so in Web-enabled applications. In the same way that scientific applications crunch numbers, Web applications are primarily string-crunching machines. Understanding the issues underlying Java string performance is therefore important for developers attempting to write high-performance Web applications in Java. A solid application design is necessary for application performance but is definitely not sufficient. There are many important performance issues lurking in the JDK details, many of which are unintuitive. This chapter presents a detailed study of those issues with regard to Java String, StringBuffer ...

Get Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.