NOTE

String Comparison

String is immutable, while StringBuilder and StringBuffer are mutable. A comparison table examines thread safety and usage scenarios.

JavaCreated Updated 1 min readhistorical

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 × √ √

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub