0

I have read many articles comparing muable and immutable classes in java. I have also read that immutable classes are easier to understand than mutable once (to the user of course).

Why it is so..? Actually I think that mutable classes show real problems more precisely than immutable once and developer does not have to carry an overhead of creating new objects every time.

please help me with that

Thanks in advance

Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332
user1079065
  • 2,085
  • 9
  • 30
  • 53

0 Answers0