String Characteristics:
- It is a reference type.
- It’s immutable( its state cannot be altered).
- It can contain nulls.
- It overloads the operator(==).
Different Ways for Creating a String:
- Create a string from a literal
- Create a string using concatenation
- Create a string using a constructor
- Create a string using a property or a method
- Create a string using formatting
No comments:
Post a Comment