Advertisements
Advertisements
प्रश्न
Write a statement to show how finding the length of a character array chr[ ] differs from finding the length of String object str.
लघु उत्तरीय
उत्तर
Statement to find the length of a character array chr[] is:
int 1 = chr.length;
Statement to find length of a String object str is:
int 1 = str.length();
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?