thepointman.dev_

Courses / Java Language

Java Strings

beginner6 lessons

String immutability and why it exists, the string pool and interning, the == vs .equals() trap, what the compiler does with + in loops (O(n^2) garbage), StringBuilder's internal char[] resizing, and the full String API — every gotcha documented.

// Lessons

  1. 01

    String Immutability — Why Strings Cannot Change (and Why That's Good)

    soon
  2. 02

    The String Pool — Interning, Literals vs new String()

    soon
  3. 03

    == vs .equals() — The Classic Mistake and Why It Happens

    soon
  4. 04

    String Concatenation — What the Compiler Does With +

    soon
  5. 05

    StringBuilder Internals — char[] Resizing and the Amortised Cost

    soon
  6. 06

    String API Deep Dive — substring(), intern(), format() and the Gotchas

    soon