Blog
Production error deep-dives — root cause, reproduction, and the fix that holds.
How Strings Are Used In Collections?
See how Java strings are used in collections: why they work so well as map keys and list values, and what to keep in mind when you store them in practice.
StringBuilder vs. StringBuffer, Thread Safety
StringBuilder vs StringBuffer in Java: how they differ, which one is thread-safe, and how to choose the right class when your code builds strings.
Performance Comparison Of StringBuilder vs. String Concatenation
Compare the performance of StringBuilder and string concatenation in Java, and learn when each is the right choice for building strings in your own code.
String, StringBuilder, and StringBuffer in Java
String, StringBuilder and StringBuffer in Java compared: mutability, thread safety and performance, and how to choose the right class for each situation.
Understanding String Immutability
Understand why Java strings are immutable: what immutability means, how it works in practice and what it changes about the way you write Java string code.
Number Formatting in Java
Learn number formatting in Java: how to display numbers the way you want, including decimals, separators and alignment, with practical examples to follow.
Parsing Strings To Primitive Types in Java
Learn how to parse Java strings into primitive types such as int, long, double and boolean, with examples and what happens when the input is not valid.
String Formatting in Java (%s, %d, %f)
Learn Java string formatting with the %s, %d and %f specifiers: how to insert strings, integers and decimals into text, with practical examples of each.
Java Strings Trimming, Replacing, and Splitting
Learn how to trim, replace and split Java strings: remove extra whitespace, swap out characters and break text into parts with the standard String methods.
String Searching and Indexing in Java
Learn how to search and index Java strings: find characters and substrings, check where they appear and read positions with the standard String methods.