String
Java · 4 notes
- Stringhistorical
String represents immutable strings that can be shared across threads. These notes examine the implementation of immutability and related operations.
- StringBufferhistorical
StringBuffer provides thread-safe mutable-string operations through synchronization. These notes compare it with StringBuilder.
- StringBuilderhistorical
StringBuilder stores characters in a resizable array and supports mutation without thread-safety guarantees. These notes trace append and resize operations.
- String Comparisonhistorical
String is immutable, while StringBuilder and StringBuffer are mutable. A comparison table examines thread safety and usage scenarios.