String class is final in java. we use parameters as strings in many classes.If string is mutable any one can change the string which leads to security threat.

click here to download video to know more about strings