Why string is immutable in java?

Discussion in 'Strings, I/O, Formatting, Parsing' started by jessie143143, Oct 15, 2011.

  1. jessie143143

    jessie143143 New Member

  2. anneroberts

    anneroberts Member

    Were string not immutable, a association or document might make transformed Also prompt genuine security danger. Alterable strings Might reason security issue done reflection too, Concerning illustration those parameters need aid strings. Effectiveness those hashcode about string is habitually utilized within java. To example, On An HashMap.
     

Share This Page