String
String is Immutable.
Immutable means once we create an object we cannot modify.
If we try to perform any operation like insert, replace or append on string it will simply discard the old value and it will create new instance in the memory to hold the new value.
String belongs to System Namespace.
Performance wise string is slow because it will create a new instance every time.
No comments:
Post a Comment