โ† Oracle questions

Create your own immutable class in Java

Filed under Oracle

The question

Explain the concept of immutability in Java, write your own immutable class, and discuss reasons for using StringBuilder over String.

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

Related Oracle questions

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