Prev Next

Java / Strings

How to create our own immutable class in Java?

  • Do not provide any setters.
  • Mark all fields as private.
  • Make the class final.

More Related questions...

Show more question and Answers...


Comments & Discussions