Why String is Immutable in Java - thejavaconceptspart
Why String is Immutable in Java - thejavaconceptspart Why String is Immutable in Java String is Immutable in Java because:- String pool requires string to be Immutable otherwise shared reference can be changed from anywhere. Security because string is shared on different area like file system, Networking connection, Database connection, having Immutable string allows you to be secure and safe because no one can change reference of string once it gets created. Other Related Search Java Naming Conventions Wrapper Class in Java String is Immutable in Java Java and Java Uses Java Virtual Machine (JVM) Java Runtime Environment (JRE) Java Development Kit (JDK) Java Buzzword Declaration of enum in java Advantage of OOPS JRE,JVM and JDK Object Oriented Approach Java structure Vs OOP P