String is immutable

Overview We will find answers for following questions What is String pool. How does memory allocation works for String. Why are String immutable. String pool String pool is a special storage area in Java heap. When a string is created and if the string already exists in the pool, the Read more…

By Ashish, ago