What is String.Length in C#?

57. What is String.Length in C#?

  1. Property
  2. Method
  3. Constructor
  4. 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; }

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.