What is the meaning of immutable in term of String in java?

Java 8Object Oriented ProgrammingProgramming

In Java, immutable objects are those whose data can’t be changed or modified (once modified). String class is immutable i.e. once we create a String object its data cannot be modified.

raja
Published on 10-Jan-2018 13:04:40
Advertisements