Tag: Java string interview question
-
Why String is immutable in Java?
This is a design question. Following points can be given to support this: 1. Security – Consider a case when user is provided access to a particular path. But after getting access, user changes the path. This could be a serious security issue. String is the widely used type of parameter for many Java classes.…
