LTM-2514 Enough java.lang.String to Hang Ourselves... | Devoxx

Devoxx UK 2019
from Wednesday 8 May to Friday 10 May 2019.

   Enough java.lang.String to Hang Ourselves...


Java Language
Java Language
Beginner & novice level
Gallery Hall Thursday from 14:40 til 15:30

Is it better to write "" + 42 or Integer.toString(42)? How much memory can you save if you intern() all your strings? How can String Deduplication reduce your memory footprint, and what does it cost? And how much memory will Java 9 strings save in Bulgaria? What is the maximum length of a constant string? And a dynamic string? How much faster is the new StringBuilder().append("Hello ").append(name).toString() than "Hello " + name? What are intrinsics, and how do they relate to strings? Are strings really immutable? How can you efficiently create substrings? You’ll get answers to these and many more questions in this session.

java.lang.String   JMH   performance  
Subscribe to Devoxx on YouTube
Dmitry Vyazelenko
Dmitry Vyazelenko
From Engenius GmbH

I’m a software developer, conference speaker and a disorganizer of JCrete ( and JAlba ( unconferences, passionate about concurrency and performance.

Heinz Kabutz
Heinz Kabutz

Dr Heinz Kabutz writes the popular "The Java Specialists' Newsletter" read by tens of thousands of enthusiastic fans in over 145 countries. To sign up, visit

Make sure to download the Android or iOS mobile schedule.