हिंदी

The statement used to find the total number of Strings present in the string array String s[] is ______. - Computer Applications

Advertisements
Advertisements

प्रश्न

The statement used to find the total number of Strings present in the string array String s[] is ______.

विकल्प

  • s.length

  • s.length()

  • length(s)

  • len(s)

MCQ
रिक्त स्थान भरें

उत्तर

The statement used to find the total number of Strings present in the string array String s[] is s.length.

Explanation:

  • In Java, the property length is used to determine the total number of elements in an array.
  • For a string array String s[], s.length returns the number of strings present in the array.
shaalaa.com
String Array
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (April) Specimen Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×