+ 2

What is the difference between String and array in java?

11th Mar 2018, 4:11 AM
nithish kumar
nithish kumar - avatar
3 Answers
+ 4
In short, string is immutable and array is mutable in Java. Immutable means once you create, you can't change its value. As a result, you can change array's value in Java but not string.
11th Mar 2018, 4:26 AM
Andy Tan
Andy Tan - avatar