Saturday, 26 November 2016

what the reason behind making string immutable in java?

why String is immutable or final in java?
Some say because it easy to use immutable string but they try to fail to enplane it.
some say for security reason.
but i can't find the logic behind this.

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...