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

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



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.

Updated on: 2019-07-30T22:30:20+05:30

280 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements