NOTE
String Comparison
String is immutable, while StringBuilder and StringBuffer are mutable. A comparison table examines thread safety and usage scenarios.
This is a historical learning note and may contain outdated or incomplete understanding.
1. StringBuilder vs StringBuffer vs String
| String | StringBuffer | StringBuilder | |
|---|---|---|---|
| Thread-safe | √ | √ | × |
| Mutable | × | √ | √ |
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub