Why string is immutable in java?
Anonymous
because of stringpool concept. stringpool will have unique strings and which will be shared across the application, if someone changes the string value in one place, then the other referred string variable should not get affected.
Check out your Company Bowl for anonymous work chats.