Home »
MCQs »
C# MCQs
What is String.Length in C#?
57. What is String.Length in C#?
- Property
- Method
- Constructor
- Both A and B
Answer: A) Property
Explanation:
The String.Length is property of System.String class that is used to get the number of characters in the current String object.
Syntax of String.Length property is:
public int Length { get; }