Question DSA-STR-0052
MediumWhy are strings immutable in Java and Python?
- A.
Safe sharing, caching of hash codes and use as dictionary keys
- B.
To save typing
- C.
To allow multiple inheritance
- D.
Because they are stored on disk
Sign up free to see the answer and a step-by-step explanation.