If String in Java is of final Class then how come we change the value of it? [duplicate]

This is because when the class is final it means the methods of the class cannot be changed or overridden. If a field is final, then the value cannot be changed after the initial value has been assigned.

Browse More Popular Posts

Leave a Comment