Why are strings immutable in Java?
To enable multiple inheritance
To avoid garbage collection
For security and thread safety
All of the above
This question is part of this quiz :