โ† Cognizant questions

String concatenation using '+' vs StringBuffer

Filed under Cognizant

The question

Explain the difference between string concatenation using the '+' operator and using StringBuffer, including pros, cons, and performance trade-offs in different scenarios.

No write-up yet. Related questions below have one.

Related Cognizant questions

Collected from public candidate posts and coding forums. Updated Nov 2026.